Ambient Light and Proximity Sensor APDS-9930
This device has visible spectrum ambient light detection as well as close range infrared proximity detection all in one neat I2C package. Get the best of both worlds with ambient light detection when something is far away and infrared proximity detection when the object is so close that it blocks most of the light.