The sensor is an LDR
-
LDR never gives a 0 value so I have used the <0
-
100 is used so that it may detact the day light!
-
Fail - condition is used to detect if LDR is functioning or not!
-
How about you join a school?
Learn the Code or at least try to READ!
I have not seen in past couple of years someone advising me so dumb!!! So for future if you know nothing then atleast don't increase someone's hurdle more!