The HOA1881-012 is a Transmissive Sensor consists of an infrared emitting diode and an NPN silicon phototransistor encased in a black thermoplastic housing. Detector switching takes place whenever an opaque object passes through the slot between emitter and detector.
Choice of phototransistor or photodarlington output