The VEML6070 is an advanced ultraviolet (UV) light sensor with an I2C protocol interface and designed by the CMOS process. It is easily operated via a simple I2C command. The active acknowledge (ACK) feature with a threshold windows setting allows the UV sensor to send out a UVI alert message.
Under a strong solar UVI condition, the smart ACK signal can be easily implemented by software programming.
VEML6070 incorporates a photodiode, amplifiers, and analog/digital circuits into a single chip. VEML6070’s adoption of FiltronTM UV technology provides the best spectral sensitivity to cover UV spectrum sensing. It has an
excellent temperature compensation and a robust refresh rate setting that does not use an external RC low pass filter.
The VEML6070 has linear sensitivity to solar UV light and is easily adjusted by an external resistor. Software shutdown mode is provided, which reduces power consumption to be less than 1 μA. VEML6070’s operating voltage ranges from 2.7 V to 5.5 V.
Let's look at how you connect the sensor to your Raspberry Pi this pinout of the Adafruit version just Look out for this version pinout.
An I2C device that just needs 3.3v and GND as well, so its pretty simple to connect to your Raspberry PI, the layout below shows a Raspberry PI 3 but you can use others as well
Here is a parts list generated from the fritzing layout above. The sensor costs about $3
|1||VEML6070||GY-VEML6070 UV UV light sensor VEML6070|
|1||Raspberry Pi 3||Raspberry Pi 3 Model B Board 1GB LPDDR2 BCM2837 Quad-Core|
This is a python example
copy it to your Raspberry PI, open a terminal and run
sudo python VEML6070.py
You should see something like this, I tested this indoors