Micropython Temperature Humidity | Micropython Temp Humidity | Temp Hum With Micropython | Humidity And Temp In Micropython | Micropython Temp & Hum | Temp&hum Micropython | Get Temp & Hum W/ Micropython | Micropython Temp/hum Sensor | Pico DHT22 | Pico DHT22 Details | Info On DHT22 Pico | DHT22 With Pico? | Pico And DHT22 | DHT22 For Pico | How About Pico DHT22 | Pico+DHT22 Query | ESP32 DHT22 Micropython | ESP32 DHT22 Micropython Code? | Micropython DHT22 On ESP32 | DHT22 With ESP32 Micropython | ESP32 Micropython DHT22 Example | How To Use DHT22 ESP32 Micropython | ESP32 & DHT22 In Micropython | Micropython Script For ESP32 DHT22 | Micropython Read DHT22 | Micropython DHT22 | Read DHT22 With Micropython | DHT22 In Micropython | Can Micropython Read DHT22 | How To DHT22 Micropython | DHT22 Reading Via Micropython

MicroPython Open Kit Simulator ↗ All recipes
Tip: Ctrl+↵ to run
Python runs in your browser. Hit Run to execute — first run downloads the Python runtime (~10 MB), then it's instant. Note: GPIO calls won't actually toggle your Pi's pins from a browser. Use this to test logic, then run the .py on your Pi.

About this recipe

Libraries / imports

machine dht time

Hardware / pins

GPIO4 DHT22

Key API calls

print() sleep()

How to run

Press Run — executes in a Web Worker. Edits auto-save.
Editor python edits auto-save
Output ready
Output will appear here after you click Run.