from machine import Pin, ADC
import time

pot = ADC(Pin(34))
pot.atten(ADC.ATTN_11DB)  # full range: 3.3v
led = Pin(5, Pin.OUT)

while True:
    pot_value = pot.read()
    print(pot_value)
    time.sleep(0.05)
