from machine import ADC, Pin
import time
pot_pin = ADC(Pin(26))
while True:
pot_value = pot_pin.read_u16()
pot_percent = pot_value / 65535 * 100
print("Raw ADC value: ", pot_value)
print("Potentiometer percentage: {:.2f}%".format(pot_percent))
time.sleep(0.5)