print("Hello, ESP32!")
from machine import Pin, ADC
from utime import sleep
LDR_Pin = ADC (Pin (12, Pin.IN))
while True:
kecerahan_cahaya= LDR_Pin.read()
voltage =kecerahan_cahaya / 4096. *5.0
print('The voltage detected is:',voltage, "V")
if 2<voltage<5:
led.on()
elif
sleep(3)