print("Hello, ESP32!")
from machine import Pin, ADC
from utime import sleep
LDR_Pin = ADC(Pin(13, 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.off()
#servo.motor(180)
#skrin.text('TIOQ LAAA..ESOK KELASS')
sleep(1)