Consisting of an infrared LED & a counterpart of an NPN photo transistor, poured into a black thermoplastic housing with an air gap between the two components. The photo transistor switches when an opaque object is moving through this air gap & interrupts the infra red beam.