Side note since the OP is scavenging, and rodents have been offered as one possible source:
Most (if not all) modern rodent opto-coupler/interrupter units are equipped with *TWO* separate detectors per opto unit ("A" and "B"), with two separate units (one each for X and Y axis) per rodent - That's how the rodent figures out which way the wheel is spinning. With two detectors, determining direction is simple: A sequence of "pulse on output X-A followed by pulse on output X-B" equals "1 pulse +X", while "pulse on X-B followed by pulse on X-A" means "1 pulse -X". Ditto for the Y-axis pair. Rodent keeps a running tally of the X/Y values and periodically (either via "Hey, the mouse has moved!" interrupts, or when polled by the computer) reports them to the computer, which then deals with translating the counts into a cursor position.
If you're using one of these as a simple yes/no indicator in a system with a fairly large motion, it should be no big deal, as the two detectors are generally mounted so close together that it doesn't matter, and you can use either the A or B output interchangeably. However, if you're looking at really small amounts of motion, you may need to pay attention to the separate outputs - or perhaps OR them together so that if either pulses, you get a pulse regardless of which one it was.
If you're using them for data transfer (turning the light source on and off to transmit data across the air-gap perhaps) you also need to be aware that *SOME* of them used not only two detectors, but two emitters, and in some cases, those twin emitters were wired to allow them to be turned on and off individually. Plan accordingly...