import time import board import analogio luz = analogio.AnalogIn(board.LIGHT) while True: print(luz.value) time.sleep(1)