import time
import utime
import math
from machine import Pin, ADC
#analog temperature sensor NTC
time.sleep(0.1)
sensor = ADC(26)
while True:
temp_value = sensor.read_u16()
BETA = 3950;
analogValue = temp_value
celsius = 1 /(math.log(1/(65535. / analogValue - 1)) / BETA + 1.0 / 298.15) - 273.15;
print(celsius)