import board import time import analogio sensor = analogio.AnalogIn(board.A2) while True: lectura = sensor.value print(lectura) time.sleep(1)