print("Hello, LDR!")
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.0
print("The voltage detected based on light absorptiion is", light_in_voltage, "V\n")
if light_in_voltage >= 4.17:
led.off()
oled.text('TIME TO SLEEPLA')
oled.show()
elif light_in_voltage <= 0.19
sleep(3)