from machine import ADC import time Internal temperature sensor is connected to ADC4 sensor = ADC(4) Conversion factor for ADC → Voltage CONVERSION_FACTOR = 3.3 / 65535 while True: Read raw ADC value reading = sensor.read_u16() Convert ADC to voltage voltage = reading * CONVERSION_FACTOR Convert voltage to temperature (datasheet formula) temperature = 27 - (voltage - 0.706) / 0.001721 print("Internal Temperature: {:.2f}°C".format(temperature)) time.sleep(1)