FWIW, I've found that Genie-brand garage door "photo-eye" pairs are
easy to use in other applications. One of the two devices is a
modulated IR source with a collimating lens; the other is a sensitive
IR receiver. They are enclosed as "semi-weather-resistant" and
commonly available as replacement parts for as little as $15/pair.
The two devices must be connected in parallel (via screw terminals;
polarity does not matter) and both powered by 12vDC through a
100-ohm resistor. When the two sides can see each other (an unbroken
beam), continuous ~300uS, ~6-volt pulses appear at ~300Hz across the
resistor. Expressed differently, a ~6v ~300Hz signal rides on 12vDC
power when the beam in unbroken.
The receiver also works to receive conventional IR-remote signals,
like from a TV remote, and can be remoted simply at the end of any
pair of wires. It is quite sensitive, it appears. The IR modulation
is seen as a ~6v signal on power.
http://www.prodoorparts.com/products/112.cfm, for example, but they
are often on ebay.
Tom

(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )