An Infrared sensor is a device that detects infrared radiations in its environment and outputs an electric signal.
An IR proximity sensor works by applying a voltage to a pair of IR LEDs which in turn, emit infrared light.