If you want a sensor that's a 3-in-1, the Adafruit APDS-9999 Proximity, Lux Light, and Color Sensor has RGB color, lux light level as well as infrared proximity all built into one device. When connected to your microcontroller (running our library code), it can detect the amount of red, blue, green, and clear light, as well as how close an object is to the front of the sensor. This device uses an I2C interface, so it's easy to wire up and use.
Note that this chip is considered by Broadcom to be the 'successor' to the APDS-9960 which has technically been discontinued, but it does not have gesture sensing! It does have true Lux sensing though, not just light counts.
The proximity sensing bounces IR light, it isn't a time-of-flight sensor, so it doesn't give you exact distances, just how much light has reflected. It's best for short distances, 2 inches / 50mm or less, but can detect objects up to 150mm away. The APDS9999 also has a configurable interrupt pin that can trigger when a specified proximity threshold is crossed or when a color sensor threshold is exceeded.
For your convenience, we've pick-and-placed the sensor on a PCB with a 3.3V regulator and some level shifting so it can be easily used with your favorite 3.3V or 5V microcontroller. We've included SparkFun qwiic compatible STEMMA QT connectors for the I2C bus, so you don't even need to solder! Just wire up to your favorite microcontroller or computer with a plug-and-play QT cable to light/color/proximity data ASAP. QT Cable is not included, but we have a variety in the shop.
Page last edited March 10, 2026
Text editor powered by tinymce.