{"title":"VCNL4020 Proximity & Light Sensor Breakout - STEMMA QT/Qwiic","handle":"adafruit-vcnl4020-proximity-and-light-sensor-stemma-qt-qwiic","url":"/products/adafruit-vcnl4020-proximity-and-light-sensor-stemma-qt-qwiic","description":"This breakout combines Vishay's VCNL4020 proximity sensor and ambient light sensor on one compact I2C board, making it a handy choice when you want to detect nearby objects and measure light levels at the same time. The proximity sensor works from 0 to 200mm (about 7.5 inches), while the light sensor covers a wide range up to 16,000 lux.Adafruit has mounted the sensor on a breakout PCB with the support circuitry needed for both 3.3V and 5V logic systems, so it fits in neatly with Feather, Raspberry Pi, Arduino and similar platforms. Because it uses I2C, wiring is simple, and the onboard STEMMA QT connectors are also compatible with SparkFun qwiic systems for quick solder-free connections.The source notes that you can use Adafruit's Arduino drivers to get up and running quickly. It also mentions adjustable sample rate and built-in averaging filters to help smooth out noisier readings. If you're replacing a similar VCNL4xxx part, keep in mind that these sensors are not firmware-compatible drop-in swaps, so you'll need the correct library and code build for the VCNL4020.Features:2-in-1 sensing: Combines proximity sensing and ambient light sensing on one board.I2C interface: Communicates over I2C with just two signal wires, plus power and ground.STEMMA QT / qwiic connectivity: Includes SparkFun qwiic compatible STEMMA QT connectors for solder-free hookup.Logic level support: Designed to work with 3.3V and 5V logic levels.Adjustable sampling: Sample rate can be tweaked to trade off speed against low-light performance.Averaging filters: Includes filtering options to help reduce spiky results.Arduino library support: Works with Adafruit Arduino drivers for easier interfacing.Specifications:Proximity range: 0 to 200mm (about 7.5 inches)Light sensor range: 0.26 to 16,000 luxLogic level compatibility: 3.3V (Feather/Raspberry Pi) or 5V (Arduino/ Metro328)Light level reports: 16-bitLight resolution: 0.25 lux per bitProduct Dimensions: 25.3mm x 17.8mm x 4.6mm / 1.0\" x 0.7\" x 0.2\"Product Weight: 1.7g / 0.1ozA QT cable is not included, so you'll need to add a compatible STEMMA QT or qwiic lead if you want plug-and-play wiring. This board suits small robotics, touch-free triggering, occupancy sensing, and light-aware projects.","vendor":"Adafruit","product_type":"Proximity and Light Sensor","in_stock":true,"options":[],"variants":[{"id":15524,"title":"Default Title","sku":"AF-5810","mpn":"ADA5810","price":14.2,"on_sale":false,"in_stock":true,"available_quantity":48}]}