A pairThrough-beam Photoelectric Switch. Wiring: red wire to positive pole, black wire to ground, yellow (white) wire to signal. Color: Black. The real color of the item may be slightly different from the pictures shown on website caused by many factors such as brightness of your monitor and light brightness.
eBay