from machine import Pin,ADC
from utime import sleep

sleep(0.01)
mcp=ADC(Pin(26))

while 1:
    val=mcp.read_u16() # read adc value
    val_v=(val/65535)*3.30 # convert to voltage
    temp=(val_v-0.5)/0.01 # convert to celcious
    print(val,val_v,temp,"^C")
    sleep(0.3)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT