Store

Adafruit

$11.60 |
In stock at supplier
No reviews yet

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 ...

Estimated Delivery
Arrives
Disclaimer
View Markdown
Secure checkout

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
Note: STEMMA QT cable not included. Increasing the integration time improves sensitivity but reduces the maximum measurable lux — choose a setting appropriate for your lighting conditions.

Resources

Jargon buster

Plain-language definitions for the technical terms used above.

Ambient light sensor
A sensor that measures the general brightness of light falling on it, similar to how a device can adjust screen brightness automatically. It matters when you want a project to react to room lighting, daylight, shadows, or covered/uncovered conditions.
breakout
A breakout is a small circuit board that makes a tiny or hard-to-solder component easier to connect to with standard pins. It matters because this OLED module can be wired into a microcontroller project without needing to solder directly to the display’s fine contacts.
CircuitPython
A beginner-friendly version of Python designed to run directly on microcontroller boards. If a product supports CircuitPython, you can often program it by copying code files onto the board rather than setting up a more complex toolchain.
duty cycle
The fraction of time a signal or light source is switched on during a repeating cycle. On a proximity sensor, changing the duty cycle can affect detection range, response speed, accuracy and power use.
I2C
I2C is a two-wire communication bus used by many sensors and small modules. It matters because several I2C devices can share the same two wires, but each device needs a compatible address and your controller must support I2C.
integration time
Integration time is how long the sensor collects light for each measurement. Longer times can improve readings in dim light, while shorter times can respond faster or avoid saturation in bright light.
IoT
Short for Internet of Things, meaning physical devices that connect to networks or the internet to send data or be controlled remotely. It matters if you want projects such as connected sensors, remote controls or classroom data-logging activities.
LED
A light-emitting diode is a small electronic component that lights up when current flows through it in the correct direction. In this kit, LEDs create the flashing effect, so polarity and correct soldering matter for the project to work.
lux
Lux is the standard unit for measuring how much light falls on a surface, similar to how a light meter reports brightness. A sensor that outputs lux gives readings that are easier to compare between rooms, outdoor conditions, and different projects.
Proximity sensor
A sensor that detects when an object is nearby without needing physical contact. For this product it matters because the useful detection range is short, up to about 200 mm, so it suits touch-free triggers and close object detection rather than long-distance measuring.
Qwiic
Qwiic is a plug-in connector system for I2C devices that uses small 4-pin cables, so you can connect compatible sensors without soldering. It matters because your controller or adapter also needs Qwiic, or you will need a cable or breakout to wire it up.
STEMMA
A plug-and-cable connection system used on some maker electronics boards to make wiring simpler. If a product uses STEMMA, you need the matching cable or connector type to plug it in without soldering.
STEMMA QT
A small plug-in connector system for I2C boards that lets you connect compatible sensors and controllers without soldering. It matters because it can make wiring faster and less error-prone, especially when adding several small modules to a project.

Related Tutorials

Free guides on learn.littlebird.com.au

Stella
Stella Expert

Ask me anything about this product

Maddy, co-founder of Little Bird

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.