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)