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