Lesson 1 of 5

Meet the DHT Sensor — Reading Temperature & Humidity

Giving your circuit a sense of weather

Introduction

Page 1 of 6

Mission Briefing

By the end of this mission, you will be able to:

  • Explain what a DHT sensor measures and how it communicates with the ESP32

  • Describe the difference between DHT11 and DHT22 sensors

  • Wire a DHT sensor to the ESP32 correctly

  • Use a library to read and display temperature and humidity

Weather apps, thermostats, and smart home hubs all rely on one thing: a sensor that can measure temperature and humidity. In this lesson, you'll meet the DHT sensor and use it to bring real-world weather data straight into your code.

Robo says: “Up until now, your circuits have reacted to light, distance, and buttons. Today, your circuit learns to feel the temperature and humidity around it.”

Lesson list
Page 1 of 6