PyRasp

← All practice problems

Raspberry Pi Pico practice problem · Raspberry Pi Pico

Temperature and humidity

MediumBudget $14MicroPython

A DHT22 module has its data pin on GP15, powered from 3V3. Use the frozen dht module to measure once and print:

Temperature: 23.4 C
Humidity: 51.0 %

The test room is 23.4 °C and 51.0 %. A real DHT22 needs about two seconds between reads; one measurement is enough here.

More in Raspberry Pi Pico