The TSL2671 family of devices provides a complete proximity detection system and digital interface logic in a single 6-pin package. The device includes a digital proximity sensor with integrated LED driver for the required external IR LED. The proximity function offers a wide range of performance, with four programmable LED drive currents and a pulse repetition range of 1 to 32 pulses. The proximity detection circuitry compensates for ambient light, allowing it to operate in environments ranging from bright sunlight to dark rooms. This wide dynamic range also allows operation in short distance detection applications behind dark glass, such as cell phones. An internal state machine provides the ability to put the device into a low power mode for very low average power consumption.