import time
from machine import Pin,ADC
Relay=Pin(12,Pin.OUT)
LDR=ADC(28)
while True:
LDR_VALUE=LDR.read_u16()
print(LDR_VALUE)
if (LDR_VALUE>60000):
Relay.value(1)
print("NIGHT,Light ON")
time.sleep(0.1)
else:
Relay.value(0)
print("Day,Light OFF")
time.sleep(0.1)