UV sensor
-
This post is deleted!
-
@robert-hh thank you it's working
-
@quentho That should work. P16 on SiPy is not used for something else. I assume that you powered the sensor and applied it to UV light.
-
@robert-hh i use this code :
adc = machine.ADC() apin = adc.channel(pin='P16') val=apin.value() print("UV:",val)
-
@quentho I understand the data sheet that the output is an analog value, expected in the range of 0-~3V. 0V without UV light. Did you apply UV light to the sensor?