Adafruit IR Break Beam Sensors with Premium Wire Header Ends - 3mm LEDs Ada#2167

Infrared (IR) break-beam sensors are a simple way to detect motion. If you do not, connect a 10K resistor between the white wire of the receiver and the red wire. This is the3mm IR version. It works up to 25cm / 10".

eBay