ArduinoGeneral

UV Light sensor not working

userHead Account cancelled 2018-06-13 23:59:29 1896 Views1 Replies
I have been trying to use a uv light sensor for the past 3 weeks but have not been able to successfully use the sensor. We used the following code
void setup()
{
Serial.begin (9600);// open serial port,
}

void loop()
{
float sensorValue;
sensorValue = (A0);
Serial.println(sensorValue);
delay(1000);
}
but the serial monitor only says 14 over and over again... the uv sensor is one that we bought from dfrobot. We first soddered single row of male pins to the sensor. and then used female male wires to connect it to arudino.
Please help we don't know what else to do!
2018-06-14 11:18:42 Where did you put the sensor, If you change the light, there is no change of the analog value? userHeadPic robert.chen