print("Hello, ESP32!")
from machine import Pin,ADC
from utime import sleep
LDR_Pin=ADC(Pin(14, Pin.IN))
while True:
light_intensity_value = LDR_Pin.read()
print(light_intensity_value)
light_in_voltage= light_intensity_value / 4096. * 5
print("\nThe voltage ditected based on ;ight absorption is ",light_in_voltage,"V")
#if light_in_voltage >= 4.17:
#led.off()
#oled.text("time to sleep")
#oled.show()
#servo.
#elif light_in_voltage <= 0.19 :
sleep(3)