A thin wrapper for the GUVAS12SD analog UV-B sensor
Constructor to create GUVAS12SD sensor
arObj - the arduino parent object
pin - the analog pin that the sensor is connected to
obj - created GUVAS12SD object
a = arduino()
# create sensor attached to pin a0.
sensor = arduinosensor.GUVAS12SD(a, "a0")
Read the voltage of the sensor
dsObj - the GUVAS12SD object
V - read voltage - effectively equivalent to readAnalogPin(arObj, pin).
a = arduino()
s = arduinosensor.GUVAS12SD(a)
# voltage
volts = s.read
See also: arduinosensor.GUVAS12SD.
Read the UV index
dsObj - the GUVAS12SD object
Idx - the sensor reading as a UV index reading
Read the uA of the sensor
dsObj - the GUVAS12SD object
uA - the sensor reading as a uAmp value
Package: arduino