Ambient light sensor can detect only visible light, so since the output changes according to brightness of ambient light, this is often used for IoT home automation systems.
Tow types are offered:
SMT version. It is a digital output ambient light with I2C interface. It has a flexible and wide operating range for the ambient light sensor with a maximum resolution of 0.0033Lux/count and a maximum detectable illumi...
The IR distance sensors can literally detect distance between an object and the sensor, by triangulation method. This line of sensors, have less influence by reflectance and color of an object. So, if you would like to detect different color or objects, this type of sensors is one of the best option— Better than the TOF sensor.
ADR range of distance sensors covers the distance between 15mm (Min) to 1500mm (Max).