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(28))
BETA = 3950 #should match the Beta Coefficient of the thermistor
while 1:
analogValue = ntc.read_u16()
celsius = 1 / (log(1 / (65535.0 / analogValue - 1)) / BETA + 1.0 / 298.15) - 273.15
print("temp",round(celsius,3),"^C")
time.sleep(0.3)