#calculate amount of voltage 
from machine import Pin, ADC
from time import sleep
ldr = ADC(Pin(14))
ldr.width(ADC.WIDTH_10BIT)

while True:
    
    ldr_value = ldr.read()    
    print("LDR Value:", ldr_value)
    sleep(1)