VEML7700
A Vishay VEML7700 high-accuracy ambient light sensor that reports illuminance in lux over I2C, from near-darkness up to about 140,000 lux.
- Supply voltage3.3 V
- Maximum supply voltage5 V
- InterfaceI2C
- I2C address0x10

The VEML7700 is Vishay's 16-bit ambient light sensor: it measures from 0 to about 140,000 lux with a resolution down to 0.0042 lux per count and answers on I2C at the fixed address 0x10 (Vishay VEML7700 datasheet Rev 1.8, p.1, p.2 and p.6). On the Adafruit breakout, wire VIN to 3.3V or 5V, GND to GND, and SDA and SCL to the board's I2C pins; the bare chip runs from 2.5 to 3.6V (p.1). Pick gain and integration time to suit the light level, and let a library apply the lux conversion.
The VEML7700 is a Vishay high-accuracy ambient light sensor packaged by Adafruit on an I2C breakout. Unlike a bare photoresistor, it integrates a photodiode, a low-noise amplifier, and a 16-bit analog-to-digital converter in one part, so it returns numeric light-level counts you can convert directly to lux instead of an arbitrary voltage. Its ambient-light channel is shaped to follow the human eye's V(λ) response, which is why its readings track perceived brightness better than a generic light sensor, and it rejects 100 Hz and 120 Hz lighting flicker.
Measurement behavior is set in software through two settings: gain (x1/8, x1/4, x1, and x2) and integration time (25, 50, 100, 200, 400, and 800 ms). Gain x2 with an 800 ms integration time gives a resolution of 0.0042 lux per count for dim environments, while gain x1/8 and a 25 ms integration time extend the range up to about 140,000 lux in bright sun without saturating. This wide dynamic range is the sensor's main advantage over cheaper light parts.
The Adafruit board adds a 3.3V regulator and an I2C logic level shifter so the same breakout works with either 3.3V or 5V microcontrollers, and it exposes STEMMA QT / Qwiic connectors for solderless wiring. The sensor answers at the fixed I2C address 0x10. Adafruit and other library authors provide Arduino and CircuitPython code that handles the register configuration and the lux conversion, including the non-linear correction Vishay's application note gives for high light levels.
VEML7700 pinout
| Pin | Function | Type |
|---|---|---|
| VIN | VIN (3-5V)3.3 V (max 5 V) | power in |
| 3V3 | 3V3 (out) | power out |
| GND | GND | power in |
| SCL | I2C SCL | bidirectional |
| SDA | I2C SDA | bidirectional |
How to wire the VEML7700
Pin by pin, for the board you have.
| VEML7700 | Arduino Uno | Note |
|---|---|---|
| VIN | 5V | |
| GND | GND | |
| SCL | SCL | |
| SDA | SDA |
| VEML7700 | ESP32 DevKit V1 | Note |
|---|---|---|
| VIN | 3V3 | |
| GND | GND | |
| SCL | GPIO22 (D22) | |
| SDA | GPIO21 (D21) |
| VEML7700 | Raspberry Pi Pico | Note |
|---|---|---|
| VIN | 3V3 | |
| GND | GND | |
| SCL | GP5 | |
| SDA | GP4 |
VEML7700 code
Every example here compiles for its board.
// VEML7700 on Arduino Uno: wiring and a free simulation at https://www.tinkered.ai/components/veml7700
#include <Wire.h>
#include <Adafruit_VEML7700.h>
Adafruit_VEML7700 veml;
void setup() {
Serial.begin(9600);
if (!veml.begin()) { // fixed I2C address 0x10
Serial.println("VEML7700 not found");
while (1) delay(10);
}
// Default gain 1x / integration time 100 ms: readLux() reads the gain and
// integration time back from the sensor, so these stay consistent.
}
void loop() {
Serial.print("Lux: ");
Serial.println(veml.readLux());
delay(500);
}
Compiled for arduino:avr:uno on 2026-10-30// VEML7700 on ESP32 DevKit V1: wiring and a free simulation at https://www.tinkered.ai/components/veml7700
#include <Wire.h>
#include <Adafruit_VEML7700.h>
Adafruit_VEML7700 veml;
void setup() {
Serial.begin(9600);
if (!veml.begin()) { // fixed I2C address 0x10
Serial.println("VEML7700 not found");
while (1) delay(10);
}
// Default gain 1x / integration time 100 ms: readLux() reads the gain and
// integration time back from the sensor, so these stay consistent.
}
void loop() {
Serial.print("Lux: ");
Serial.println(veml.readLux());
delay(500);
}
Compiled for esp32:esp32:esp32 on 2026-10-30// VEML7700 on Raspberry Pi Pico: wiring and a free simulation at https://www.tinkered.ai/components/veml7700
#include <Wire.h>
#include <Adafruit_VEML7700.h>
Adafruit_VEML7700 veml;
void setup() {
Serial.begin(9600);
if (!veml.begin()) { // fixed I2C address 0x10
Serial.println("VEML7700 not found");
while (1) delay(10);
}
// Default gain 1x / integration time 100 ms: readLux() reads the gain and
// integration time back from the sensor, so these stay consistent.
}
void loop() {
Serial.print("Lux: ");
Serial.println(veml.readLux());
delay(500);
}
Compiled for rp2040:rp2040:rpipico on 2026-10-30Before you wire it
- Wire to the board-agnostic SDA/SCL pins, never the raw analog pins.
- The Adafruit breakout has on-board SDA/SCL pull-ups (registered on the part): do not add external pull-up resistors.
- Fixed I2C address 0x10 (no address strap). begin() needs no argument.
- On ESP32 with a second I2C device, DAISY-CHAIN the bus through the VEML7700's own pins (ESP32 → VEML7700 → next for SDA/SCL/VIN/GND): do not fan each net out from the ESP32 pins (each DevKit pin holds ONE wire).
- No wiring 3V3 (it is an output, not an input).
- No external I2C pull-up resistors: the module already has them on-board.
- No expecting a raw register read in lux: read via Adafruit_VEML7700 (readLux() applies the gain / integration-time resolution).
- Power VIN from 3.3V or 5V. An onboard regulator supplies the VEML7700, whose own supply range is 2.5-3.6V, and the 3Vo/3V3 pin is a regulated output (up to 100mA), not a power input.
- SDA and SCL pass through an onboard level shifter, so the I2C bus operates at either 3.3V or 5V logic. The sensor supports I2C clocks from 10 to 400 kHz.
- The breakout includes I2C pull-up resistors on SDA and SCL (4.7K on boards from December 2019), so external pull-ups are not needed on a short bus.
- The I2C address is fixed at 0x10 with no address-select option, so only one VEML7700 can share a bus unless you add an I2C multiplexer.
- After enabling the sensor, wait at least one full integration period before trusting the first reading. Longer integration times (up to 800 ms) improve low-light resolution but slow the update rate.
Specifications
- Supply voltage
- 3.3 V
- Maximum supply voltage
- 5 V
- Interface
- I2C
- I2C address
- 0x10
- On-board I2C pull-ups
- Yes (10 kΩ)
- Dimensions
- 25.4 × 17.8 × 5 mm
- Weight
- 2 g
From the Adafruit (Vishay VEML7700)'s datasheet, published by Adafruit (Vishay VEML7700).
Common mistakes
Reading before the first integration completes
After clearing the shutdown bit, the sensor needs one full integration period before valid data is ready. Polling immediately returns 0 or a stale value, so wait for the configured integration time (25 to 800 ms) before your first read.
Letting the ALS channel saturate in bright light
High gain combined with a long integration time will clip to full scale (0xFFFF) under sunlight or strong indoor light. Lower the gain or shorten the integration time, or use the library's auto-ranging, so the value stays inside the usable range.
Converting counts to lux without the correction formula
At high light levels the raw counts are non-linear. Applying only the linear resolution factor gives readings that drift off true lux. Use the correction polynomial from Vishay's application note (the Adafruit library applies it for you) when accuracy matters.
Trying to run two sensors on one bus
The address is fixed at 0x10 with no jumper, so two VEML7700 boards on the same I2C bus collide. Use an I2C multiplexer such as a TCA9548A, or a second bus, to read more than one.
Feeding power into the 3V3 pin
The 3V3 pin is a regulated output from the onboard regulator, not an input. Supply the board through VIN (3.3V to 5V) and treat 3V3 only as a source for other 3.3V parts.
VEML7700 questions
Does the VEML7700 work with 5V Arduino boards?
The chip itself runs from 2.5 to 3.6V with an I2C bus voltage of 1.7 to 3.6V (Vishay VEML7700 datasheet Rev 1.8, p.1). The Adafruit breakout adds a 3.3V regulator and a logic level shifter, so it wires directly to a 5V Uno or a 3.3V ESP32 (Adafruit VEML7700 product page).
What is the VEML7700's lux range and resolution?
From 0 to about 140,000 lux. The finest resolution, 0.0042 lux per count, comes with gain x2 and an 800 ms integration time, and the 140,000 lux maximum with gain x1/8 and 25 ms (p.2). Older documents and the Adafruit page quote 120,000 lux and 0.0036 lux per count from an earlier datasheet revision.
What is the VEML7700 I2C address?
It is fixed at 0x10 (7-bit), or 0x20 when written as an 8-bit write address (p.6). There is no address pin, so a second sensor needs another I2C bus or a multiplexer.
Why does my VEML7700 read 0 or a constant value?
Make sure the sketch clears the shutdown bit and waits one integration period (25 to 800 ms) before reading. A reading stuck at full scale in bright light means the gain or integration time is too high; lower them or enable the library's automatic ranging.
How much power does the VEML7700 use?
Typically 45µA while measuring every 100 ms with power-saving mode off, down to 2µA with the longest power-saving refresh time of 4100 ms, and 0.5µA in shutdown (p.1 and p.2).
VEML7700 vs BH1750: which light sensor should I use?
Both are 16-bit I2C lux sensors. The ROHM BH1750FVI covers 1 to 65,535 lux (BH1750FVI datasheet, p.1), while the VEML7700 reaches about 140,000 lux, enough for direct sun, with selectable gain and integration time down to 0.0042 lux per count (VEML7700 datasheet, p.1 and p.2). Pick the VEML7700 for outdoor or wide-range metering.
Build something with the VEML7700
- Build this
Automatic display brightness
Read ambient lux and dim or brighten an LCD, OLED, or LED backlight so a screen stays readable indoors and outdoors.
- Build this
Daylight-harvesting light controller
Trigger room or desk lighting only when measured lux drops below a threshold, saving power by using available daylight first.
- Build this
Greenhouse and grow-light logger
Track light levels reaching plants over the day and log lux to spot shaded spots or verify a grow light's coverage.
- Build this
Handheld lux meter
Pair the sensor with a small display to build a pocket light meter for photography, workspace, or lighting audits.
This page as plain Markdown, for ChatGPT, Claude or your own agent. /components/veml7700.md