What's the actual application for what you're trying to do? You might get some better suggestions.
Otherwise, most alarm parts work in this manner. You could get a PIR (probably get a used one for free if you talked to an alarm installer) and focus a very narrow beam (just use tape inside the lens). Most of these can function as either a Normally Open or Normally Closed switch and use 7