import time
from machine import Pin
from machine import ADC
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
const float BETA = 3950
while True:
int analogValue = analogRead(A0)
float celsius = 1 / (log(1 / (1023. / analogValue - 1)) / BETA + 1.0 / 298.15) - 273.15
print(celsius)
time.sleep(1)