At their core, integrated ambient light and proximity sensors combine hardware and software components to detect environmental cues. The hardware typically includes photodiodes, infrared LEDs, and microcontrollers.
This sensor comparison is the conclusion of my series on ambient light, gesture, motion and distance and proximity sensors. Surely, there are many more sensors that fall into these categories and that I havent tested.
The proximity sensor readout features ambient-light suppression algorithms and is able to operate from dark rooms up to bright sun conditions. The product has independent photodiodes and readout circuits for the ALS and the PS on a single die.

The TCS3720 ambient light (ALS) and proximity sensor from ams-OSRAM GmbH provides accurate color and illuminance measurements and reliable proximity d.
The family includes the TSL2540 and TSL2541 ambient light sensors and the TSL2740, a combined ambient light and proximity sensor.The TSL2740 performs proximity sensing by measuring reflected IR light emitted from an external LED and operates at ranges of up to 10cm.

As we can see from the illustration, Ambient Light And Proximity Sensors has many fascinating aspects to explore.
The VCNL4040 is a fully integrated proximity and ambient light sensor from Vishay Semiconductors.In addition to proximity, the VCNL4040 includes a dedicated ambient light sensing channel with a filter designed to match the human eyes spectral response.
1. The Invisible Eye: Under-Display Ambient Light and Proximity Sensing. For years, the forehead of a smartphone or tablet was cluttered with small windows for light and proximity sensors.