from machine import ADC, Pin
from time import sleep

ldr = ADC(Pin(4))

while True:
    print(ldr.read())

    sleep(1)