Things You'll Need
Instructions
Attach the LED package to the mounting block.
Place the IR photodetector on the mounting block so it faces the same direction as the LED. Face the detector to receive the reflected infrared radiation when the light from the LED reflects off an object.
Place the IR bandpass filter in front of the photodetector. Match the wavelength of the filter to the wavelength of your LED so the filter will let the LED light through while eliminating other background light.
Insert an opaque divider as a "wall" between your LED and the photodetector. This is to keep any infrared light from going directly from the LED to the photodetector.
Connect the photodetector output to the detector circuit.
Set the detector circuit threshold. Put your proximity sensor package close to the type of object you want to detect and adjust the threshold to trigger. If you adjust the sensitivity higher, you can detect the object when it's further away, but you will also be more susceptible to false alarms.