print("Hello, Pi Pico!")
# https://how2electronics.com/read-temperature-sensor-value-from-raspberry-pi-pico/
# main.py
# ssd1306 Oled + RPI Pico

import machine
import utime
 
sensor_temp = machine.ADC(4)
conversion_factor = 3.3 / (65535)
 
while True:
    reading = sensor_temp.read_u16() * conversion_factor 
    temperature = 27 - (reading - 0.706)/0.001721
    print(temperature)
    utime.sleep(2)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT