print("Hello, ESP32!")
from machine import Pin, ADC
from utime import sleep
LDR_Pin = ADC (Pin(12,Pin.IN))
while True:
kecerahan = LDR_Pin.read()
voltage = kecerahan / 4096 * 5
print(" The Voltage Detected Is : ", voltage, "V")
if 2 < voltage < 5:
led.off()
servo.motor(180)
skrin.text("tidur!")
elif
sleep(3)