Component guide · Beginner · 3 min read
VEML7700 Lux Sensor

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The VEML7700 from Vishay is a 16-bit ambient light sensor that reports lux over I2C at address 0x10. Its response matches the human eye, and with gain and integration-time settings it covers from about 0.0036 lux to 120,000 lux (direct sunlight). Use it for automatic screen brightness, smart lighting, plant grow lights and daylight logging.
Key specs at a glance
- Range
- About 0 to 120,000 lux
- Resolution
- Down to 0.0036 lux per count at the highest gain
- Spectral response
- Close to the human eye (peak about 560 nm)
- Interface
- I2C, address 0x10 (fixed)
- Supply
- Chip 2.5 to 3.6 V; most modules 3.3 to 5 V
- Settings
- Gain ×1/8 to ×2, integration 25 to 800 ms
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1VEML7700 Ambient Light Sensor Module – I2C Interface, 0-167k lux₹104
Option 2Adafruit VEML7700 Lux Sensor – I2C Light Sensor Module₹729
Option 3VEML7700 Ambient Light Sensor Module Blue – I2C Interface₹249
Option 4VEML7700 Ambient Light Sensor Module Green Horizontal – I2C Interface₹299
Option 5VEML7700 Ambient Light Sensor Module Green Standing Type – I2C Interface₹299
What the VEML7700 is
The VEML7700 has a photodiode filtered to see light as our eyes do, an amplifier and a 16-bit converter in one tiny package. Unlike an LDR, it reports a calibrated lux value, so readings from different units agree.
Above about 1,000 lux the raw reading is slightly non-linear; the Adafruit library applies Vishay's correction automatically.
VEML7700 pinout
The pins on the VEML7700 and what each one does.
| Pin | Function |
|---|---|
| VIN / VCC | Supply, 3.3 to 5 V on modules with a regulator |
| GND | Ground |
| SDA | I2C data |
| SCL | I2C clock |
| 3Vo | 3.3 V output on Adafruit boards |
- VIN / VCC
- Supply, 3.3 to 5 V on modules with a regulator
- GND
- Ground
- SDA
- I2C data
- SCL
- I2C clock
- 3Vo
- 3.3 V output on Adafruit boards
Wiring the VEML7700
The address 0x10 is fixed, so use one VEML7700 per I2C bus or an I2C multiplexer for more.
| VEML7700 pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V (or 3.3V) | 3V3 |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 22 |
- VCC
- Arduino Uno:
- 5V (or 3.3V)
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDA
- Arduino Uno:
- A4
- ESP32:
- GPIO 21
- SCL
- Arduino Uno:
- A5
- ESP32:
- GPIO 22
Example code
VEML_LUX_AUTO adjusts gain and integration time for you so readings stay in range from darkness to sunlight.
#include "Adafruit_VEML7700.h"
Adafruit_VEML7700 veml;
void setup() {
Serial.begin(115200);
if (!veml.begin()) { Serial.println("No VEML7700 found"); while (1); }
}
void loop() {
Serial.print(veml.readLux(VEML_LUX_AUTO)); Serial.println(" lux");
delay(1000);
}Setup and tuning
a window in front of the sensor reduces the reading; calibrate against a reference meter if you add one.
longer times give smoother readings in dim light; shorter times react faster.
in direct sunlight use the lowest gain to avoid saturation.
What you need
Shop this list8 of 9 found in our store · ₹2,257
VEML7700 Ambient Light Sensor Module – I2C Interface, 0-167k lux: the part this guide coversVEML7700 Ambient Light Sensor Module – I2C Interface, 0-167k lux₹104
Adafruit VEML7700 lux sensor: an easy board with a regulatorAdafruit VEML7700 Lux Sensor – I2C Light Sensor Module₹729Closest match, check the specs
VEML7700 Ambient Light Sensor Module Blue – I2C Interface: another version this guide coversVEML7700 Ambient Light Sensor Module Blue – I2C Interface₹249
VEML7700 Ambient Light Sensor Module Green Horizontal – I2C Interface: another version this guide coversVEML7700 Ambient Light Sensor Module Green Horizontal – I2C Interface₹299
VEML7700 Ambient Light Sensor Module Green Standing Type – I2C Interface: another version this guide coversVEML7700 Ambient Light Sensor Module Green Standing Type – I2C Interface₹299- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- BH1750: popular low-cost lux sensor up to 65,535 lux.
- TSL2561: separates infrared and visible light.
- Ambient light sensors compared: BH1750, TSL2591, VEML7700 and OPT3001.
- LDR light sensors: cheapest option, uncalibrated.
Try it: I2c pullup calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Putting two VEML7700 on one bus (fixed address 0x10).
- Reading raw counts without converting with the current gain and integration time.
- Placing it where the board's own LEDs shine on it.
- Using maximum gain in sunlight and getting saturated readings.
Frequently asked questions
What is the VEML7700's I2C address?
0x10, fixed.
Can it measure direct sunlight?
Yes, up to about 120,000 lux with low gain.
VEML7700 or BH1750?
Both give lux; the VEML7700 has finer resolution in very dim light and a wider range.
Does it work at 5 V?
Modules with a regulator do; the chip is 3.3 V.
Does it measure UV?
No, only visible light. Use a UV sensor such as the GUVA-S12SD for UV.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
- VEML7700 high accuracy ambient light sensor datasheet and application note (Vishay)
- Adafruit VEML7700 library
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

