[ Adafruit ADA-2167 ] IR Break Beam Sensors with Wire Header Ends - 3mm LEDs
Infrared (IR) break-beam sensors are a simple way to detect motion. This is the 3mm IR version. It works up to 25cm / 10". If you do not, connect a 10K resistor between the white wire of the receiver and the red wire.