Pandabyte DHT11 Sensor Module: Temperature and Humidity Guide

by pandabyte in Circuits > Arduino

33 Views, 0 Favorites, 0 Comments

Pandabyte DHT11 Sensor Module: Temperature and Humidity Guide

dht.png

Pandabyte DHT11 Sensor Module is a simple environmental sensing module used for learning temperature and humidity measurement with microcontrollers such as Arduino compatible boards, ESP32, or Raspberry Pi Pico.

The module uses the DHT11 digital temperature and humidity sensor to measure surrounding environmental conditions.

A key feature of this module is that it supports two connection methods:

  1. Traditional 3-pin header for standard jumper-wire connections
  2. OR
  3. 4-pin Grove connector for quick plug-and-play prototyping without complex wiring

In this guide, you will learn:

  1. Module pin configuration
  2. Temperature measurement
  3. Humidity measurement
  4. Circuit connections
  5. Arduino programming examples


Supplies

item list.png

Hardware:

  1. PandaByte DHT11 Sensor Module
  2. Development Board (We will use PandaByte xC3m ESP32C3 Dev board)
  3. Grove Shield/Expansion Board
  4. Cables: Dupont, USB, and Grove

Software:

  1. Arduino IDE
  2. DFRobot DHT11 Library
  3. https://github.com/DFRobot/DFRobot_DHT11

Circuit Connections

dhtpin.png

Perform the connection based on the table.

Install the Library

Open Arduino IDE

Go to:

  1. Sketch → Include Library → Manage Libraries

Search for:

  1. DFRobot_DHT11

Install the library

Programming

Program: Read temperature and humidity values from the DHT11 sensor and display them on Serial Monitor.


#include <DFRobot_DHT11.h>

DFRobot_DHT11 DHT;
#define DHT11_PIN 0

void setup() {
Serial.begin(115200);
}

void loop() {
DHT.read(DHT11_PIN);

Serial.print("Temperature: ");
Serial.print(DHT.temperature);
Serial.println(" °C");

Serial.print("Humidity: ");
Serial.print(DHT.humidity);
Serial.println(" %");

Serial.println();

delay(2000);
}

Output

  1. The Serial Monitor will display:
  2. temperature in °C
  3. humidity percentage (%)

Important Info

The module uses the DHT11 digital temperature and humidity sensor.

The DHT11 sensor provides:

  1. temperature readings
  2. relative humidity readings

The sensor communicates using a digital single-wire protocol.

The IN pin must be connected to a digital GPIO pin.

Typical DHT11 specifications:

  1. Temperature range:
  2. 0 °C to 50 °C
  3. Humidity range:
  4. 20% to 90% RH

Sampling rate is relatively slow. Reading once every 2 second is recommended.