I could try using an multimeter on voltage mode to measure the voltage on the analog pin when you get dark on LDR.This way you will be chore about the value you have to expect on the if cicle. Like CrossRoads say you sould get a flag variable also
I could try using an multimeter on voltage mode to measure the voltage on the analog pin when you get dark on LDR.This way you will be chore about the value you have to expect on the if cicle. Like CrossRoads say you sould get a flag variable also