Placeholder. This chapter has its structure and its place in the site; the writing is still to come. Nothing here is checked yet — don’t wire anything up from it.
beginnerChapter 4 of 420 min
Read a sensor
Wire a DHT22, read it reliably, and send the numbers somewhere you can see them.
Wiring the sensor
Placeholder. This chapter has its template and its place in the series; the
writing is still to come.
Check it worked
Related
Put a DHT22 on the internet in 20 minutes — Wire a temperature and humidity sensor to an ESP32-S3, and watch the readings land on a live dashboard you can open from your phone. No backend, no server, no port forwarding.
DHT22 Temperature and Humidity Sensor — A DHT22 on a TinkerBlock board, the TK39: temperature from −40 to 80 °C to ±0.5 °C and humidity from 0 to 100 % to ±2 %, in tenths, on one data wire. The 10 kΩ pull-up is fitted, so it is three wires and one library. Feed VCC what your board's pins run at, and read it no more than once every two seconds.
Edit this page — content/guides/esp32-from-scratch/read-a-sensor.mdx