#imports
import machine,time
#Set up components/global variables
ledPin = 16
led = machine.Pin(ledPin, machine.Pin.OUT)
tempPin = machine.ADC(4)
while True:
tempValue = tempPin.read_u16() * (3.3 / (65536))
tempC = 27 - (tempValue - 0.706)/0.001721
tempF=32+(1.8*tempC)
print("Temperature: {}°C {}°F".format(tempC,tempF))
time.sleep(0.2)