A pairThrough-beam Photoelectric Switch. Sensing: Light Interruption (Infrared). Sensing Distance: 2-30cm. Wiring: red wire to positive pole, black wire to ground, yellow (white) wire to signal. Output Current: 70mA (Can directly drive a relay).
eBay