print("Hello, ESP32!")
print("Hello, This program is about LDR(light indensity Detection)")
print("Date 27/11/2023")
print("By: Muhd Asyraaf ")
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 / 4906 * 5.0
print(" The voltage detected is : ", voltage, 'Volt')
sleep(3)