Blog

DHT11 Temperature and Humidity Sensor Module

DHT11 Temperature & Humidity Sensor

Basic Environmental Sensing with Status LED for Arduino Projects

Introduction

The DHT11 is a basic, low-cost digital temperature and humidity sensor with a built-in status LED. It provides adequate accuracy for most hobbyist projects and includes visual feedback through its indicator LED.

Key Features

💡 Status LED

Built-in indicator for power/activity

💰 Low Cost

Affordable solution for basic projects

🔋 Low Power

3-5V operation with minimal current draw

🔄 Plug & Play

Pre-calibrated digital output

Technical Specifications

Temperature Range 0°C to 50°C (±2°C accuracy)
Humidity Range 20-90% RH (±5% accuracy)
LED Indicator Red power/activity light
Sampling Rate 1Hz (1 reading per second)
Operating Voltage 3.3V – 5.5V DC
Dimensions 23mm × 12mm × 5mm

Pin Configuration

Pin Function Connection
1 VCC 3.3V-5V (Red LED connected here)
2 DATA Digital Pin (with pull-up resistor)
3 NC Not Connected
4 GND Ground
LED Behavior: The red LED will light when powered and blink during data transmission

Wiring with Arduino

Tip: The LED provides visual confirmation of power and data transmission activity

Library Setup

  1. Install the DHT sensor library by Adafruit
  2. Include the library in your sketch:
  3. Initialize the sensor (note DHT11 type):

 

Basic Example with LED Monitoring

 

LED Status Guide

LED State Meaning
Steady On Power connected properly
Brief Flicker Data transmission occurring
Off No power or wiring issue
Irregular Blinking Communication problems

Troubleshooting

LED Not Lighting

  • Check VCC and GND connections
  • Verify power supply voltage (3.3V-5V)
  • Test with different power source

LED On But No Data

  • Confirm DATA pin connection
  • Add/check 4.7KΩ pull-up resistor
  • Try different digital pin

Inconsistent Readings

  • Ensure 2-second delay between readings
  • Keep sensor away from heat sources
  • Check for condensation on sensor