from machine import Pin, ADC from time import sleep adc = machine.ADC(26) while True: pot_value = adc.read_u16() print( "Value: ", pot_value ) sleep(0.5)