import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from machine import Pin,ADC
from math import log
NTC=ADC(Pin(26))
BETA = 3950
while 1:
raw=NTC.read_u16() # read analog value
celsius = 1 / (log(1 / (65535.00 / raw - 1)) / BETA + 1.0 / 298.15) - 273.15
print(celsius)
time.sleep(0.5)