VEML6070 UV Sensor
Overview
A sensor capable of measuring ultraviolet light. It features a true UV sensor and ADC on a single chip, enabling UV measurement at speeds of 60 ~ 500ms. Uses I2C interface.

Specifications
- Operating Voltage 3.3V / 5V
- Range of spectral sensitivity 320 ~ 410 nm
- Peak Sensitivity 355 nm
- UVA Sensitivity 5 μW/cm2/step(typical)
- Interface I2C
Supported GPIO
- Raspberry Pi 0~4
- Raspberry Pi 5
- BeagleBone Black/Green
- Jetson Nano
- FT232H, FT2232H, FT4232H
- MCP2221
Commands
[INIT]
Configures initial settings.
Item | Type | Description |
---|---|---|
Integration Time | WRITE | Determines how long the sensor will receive light to measure UV radiation. Higher values increase accuracy but extend measurement time. (0.5x,1x,2x,4x) |
[READ_UV]
Reads UV level.
Item | Type | Description |
---|---|---|
UV Level (steps) * | READ | Measured UV intensity. This is a unitless value and should not be confused with UV Index. |
* Refer to the table below for the relationship between UV Level and UV Index.

UV Level (steps) | UV Index |
---|---|
560 or below | Low (0~2) |
560~1120 | Moderate (3~5) |
1120~1494 | High (6~7) |
1494~2054 | Very High (8~10) |
Above 2054 | Extreme (11+) |
Example
Objective
Display measured UV Level on dashboard widgets.
Parts
Part | Quantity |
---|---|
Raspberry Pi 4 * | 1 |
VEML6070 | 1 |
* Other hardware can also be used. Refer to Supported GPIO.
Wiring
Connect each component to the corresponding connection as listed in each row below.
VEML6070 | GPIO |
---|---|
VIN | 3.3V |
GND | GND |
SCL | 3 (I2C1 SCL) |
SDA | 2 (I2C1 SDA) |

Project Link