import time
from machine import Pin, I2C, ADC
import math
import ssd1306
temp_adc= ADC(27)
conversion_factor = 3.3 / (65535)
GAMMA = 0.7
RL10 = 33
BETA = 3950
while True:
analogValue = temp_adc.read_u16()
celsius = 1 / (math.log(1 / (65535 / analogValue - 1)) / BETA + 1.0 / 298.15) - 273.15;
output_string = f"NTC T = %.2fC"%celsius
print(output_string)
time.sleep(1)