SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By stellachanc
#198381
ML8511 UV Sensor Hookup Guide


Qwiic UV Sensor - ZOPT2201

I am wondering what is the difference between the above two UV sensor.
AND how to form the CODE??? Where can I check is the code is science based?
By jremington
#198386
They are pretty different, as the data sheets show, but both report the intensity of UV light in a certain spectral range.

Write code that reads the sensor and outputs values that make sense to you.

To check if the code is "science based" you will need to calibrate the sensor. The easiest way to do that is to compare readings with a commercial, calibrated UV sensor. Sensor calibration overview: https://learn.adafruit.com/calibrating- ... -calibrate.