
Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT
The Adafruit VCNL4040 is a two-in-one proximity and ambient light sensor from Vishay. It measures proximity from 0 to 200 mm (~7.5 inches) using an on-board IR LED, and ambient light from 0.0125 to 6,553 lux — all over a simple I2C interface.
The breakout includes 3.3V and 5V level-shifting circuitry for compatibility with both Feather/Raspberry Pi (3.3V) and Arduino/Metro (5V) platforms. Two STEMMA QT / Qwiic connectors provide solderless I2C connection and easy daisy-chaining with other sensors.
Key Features
- Proximity Sensor – 0 to 200 mm range with adjustable IR LED current and duty cycle
- Ambient Light Sensor – 0.0125 to 6,553 lux (at 80 ms integration time)
- Adjustable Integration Time – 80 ms to 640 ms; longer times increase sensitivity and resolution but reduce maximum lux range (down to 819.2 lux at 640 ms)
- I2C Interface – Simple two-wire communication
- STEMMA QT / Qwiic Connectors – Two connectors for solderless plug-and-play wiring
- 3.3V and 5V Compatible – Built-in voltage regulator and level shifting
Ideal For
- Gesture and proximity detection
- Automatic display brightness adjustment
- Object detection at short range
- Ambient light monitoring for IoT and environmental sensing
Package Contents
- 1× Adafruit VCNL4040 Proximity and Lux Sensor Breakout
Resources
- Adafruit VCNL4040 Guide – Wiring, CircuitPython, Python, and Arduino drivers
Product Information
Product Information
Shipping & Returns
Shipping & Returns
Description
The Adafruit VCNL4040 is a two-in-one proximity and ambient light sensor from Vishay. It measures proximity from 0 to 200 mm (~7.5 inches) using an on-board IR LED, and ambient light from 0.0125 to 6,553 lux — all over a simple I2C interface.
The breakout includes 3.3V and 5V level-shifting circuitry for compatibility with both Feather/Raspberry Pi (3.3V) and Arduino/Metro (5V) platforms. Two STEMMA QT / Qwiic connectors provide solderless I2C connection and easy daisy-chaining with other sensors.
Key Features
- Proximity Sensor – 0 to 200 mm range with adjustable IR LED current and duty cycle
- Ambient Light Sensor – 0.0125 to 6,553 lux (at 80 ms integration time)
- Adjustable Integration Time – 80 ms to 640 ms; longer times increase sensitivity and resolution but reduce maximum lux range (down to 819.2 lux at 640 ms)
- I2C Interface – Simple two-wire communication
- STEMMA QT / Qwiic Connectors – Two connectors for solderless plug-and-play wiring
- 3.3V and 5V Compatible – Built-in voltage regulator and level shifting
Ideal For
- Gesture and proximity detection
- Automatic display brightness adjustment
- Object detection at short range
- Ambient light monitoring for IoT and environmental sensing
Package Contents
- 1× Adafruit VCNL4040 Proximity and Lux Sensor Breakout
Resources
- Adafruit VCNL4040 Guide – Wiring, CircuitPython, Python, and Arduino drivers























