from machine import Pin,Timer import time ldr1=Pin(27,Pin.OUT) while True: print(ldr1.value()) time.sleep(1)