from machine import Pin,ADC

from time import sleep_ms
pot=ADC(Pin(34))
ADC.width(ADC.WIDTH_10BIT)
while 1:
  print(pot.read())
  sleep_ms(400)