# from machine import ADC, Pin
# from time import sleep
# pot_pin = 5
# pot = ADC(Pin(pot_pin))
# while True:
# val = pot.read()
# print(val)
# sleep(2)
from machine import Pin, ADC
from time import sleep
pot = ADC(Pin(35))
pot.width(ADC.WIDTH_10BIT)
while True:
val = pot.read()
print(val)
# print(val>>2)
sleep(0.5)