An app note from Vishay: Designing VCNL3020 into an application (PDF!)
The VCNL3020 is a proximity sensor with I2C interface. It combines an infrared emitter, PIN photodiode, and signal processing IC in a single package with a 16 bit ADC. With a range of up to 20 cm (7.9″), this stand-alone, single component greatly simplifies the use and design-in of a proximity sensor in consumer and industrial applications because no mechanical barriers are required to optically isolate the emitter from the detector. The VCNL3020 features a miniature leadless package (LLP) for surface mounting in a 4.9 mm x 2.3 mm package with a low profile of 0.83 mm designed specifically for the low height
requirements of smart phone, mobile phone, digital camera, and tablet PC applications. Through its standard I2C bus serial digital interface, it allows easy access to a “Proximity Signal” measurement without complex calculations or programming. The programmable interrupt function offers wake-up functionality for the microcontroller when a proximity event occurs which reduces processing overhead by eliminating the need for continuous polling.
from Dangerous Prototypes http://ift.tt/1TItsYj