Part 8 of 15

Temperature sensor DHT11

Temperature sensor DHT11

Measures the temperature and the humidity

In your kit: 1×

🔎 What is it?

The DHT11 measures how warm it is (in degrees Celsius) and how humid the air is (in percent). It gives a new measurement every 2 seconds.

🔌 This is how you connect it

  • DAT (data) to a pin, for example D2
  • VCC to 5V
  • GND to GND

Wiring diagram

From To
Arduino UNO · 5V Temperature sensor DHT11 · VCC
Arduino UNO · GND Temperature sensor DHT11 · GND
Arduino UNO · D2 Temperature sensor DHT11 · DAT

✨ What can you do with it?

  • A mini weather station
  • A fan that turns on when it is too warm
  • A warning when it is too humid in the bathroom

💡 Tip

Try breathing on the sensor. Then you will see the humidity go up right away!

Projects with this part

⬇️ Download this page as a PDF 📚 Download the complete tutorial (PDF)

Codey Online is a product of OTRONIC

Build your Arduino or ESP32 project with AI

Describe what you want to build. Codey Online writes the code, draws the wiring diagram, compiles it and flashes your board straight from the browser.

Start for free