DHT11 Sensor Pinout

The DHT11 is one of the most widely used digital temperature and humidity sensors in Arduino and electronics projects. It measures both temperature and relative humidity using a single digital output pin, and is commonly found in weather stations, HVAC systems, greenhouses, and home automation projects.

What is DHT11?

The DHT11 is a basic integrated sensor module that measures ambient temperature and relative humidity. Unlike analog sensors, it outputs calibrated digital data through a single-wire serial interface, making it straightforward to read with any microcontroller.

One of the biggest advantages of the DHT11 is its all-in-one design — it measures two environmental parameters simultaneously with a single sensor. This eliminates the need for separate sensors and simplifies wiring in projects that require both temperature and humidity monitoring.

DHT11 temperature and humidity sensor

DHT11 overview

ParameterValue
Sensor TypeDigital Temperature & Humidity Sensor
Operating Voltage3.3V – 5.5V
Current Consumption2.5mA (during measurement)
Temperature Range0°C to +50°C
Humidity Range20% to 80% RH
Output TypeDigital (Single-Wire)
Temperature Accuracy±2°C
Humidity Accuracy±5% RH
CommunicationSingle-Wire Serial
Mounting TypeThrough Hole
Compatible BoardsArduino Uno, ESP32, Raspberry Pi

Pinout

DHT11 sensor pinout

Pin NameTypeDescription
VCCPowerSupplies power to the sensor (3.3V – 5.5V)
DATAOutputSends digital temperature and humidity data
NCNot connected (no function)
GNDPowerGround connection

Note: A pull-up resistor of 4.7kΩ – 10kΩ is recommended between the DATA pin and VCC for reliable communication, especially over longer wire runs.

Working principle

The DHT11 works by combining a resistive humidity sensing element and a negative temperature coefficient (NTC) thermistor, both connected to an internal 8-bit microcontroller that processes and outputs the data digitally.

When the host microcontroller sends a start signal, the DHT11 wakes from low-power mode and transmits a 40-bit data packet containing both temperature and humidity readings:

  • Bits 1–16: Relative humidity (integer + decimal)
  • Bits 17–32: Temperature (integer + decimal)
  • Bits 33–40: Checksum for data verification

For example, at 25°C and 60% RH, the sensor transmits: 00111100 00000000 00011001 00000000 01010101 — the last byte being the checksum (sum of the first four bytes).

Since the output is digital, no ADC is required. The microcontroller simply reads the serial data from the DATA pin and parses the values directly, reducing the chance of noise-induced errors compared to analog sensors.

Internal circuitry of the DHT11

DHT11 internal circuitry

Although the DHT11 looks like a compact 4-pin module, it contains several key components inside its package.

1. Resistive Humidity Sensor The primary humidity sensing element — a hygroscopic substrate between two electrodes that changes resistance with moisture levels in the air.

2. NTC Thermistor A negative temperature coefficient thermistor whose resistance decreases as temperature rises, allowing the internal MCU to derive an accurate temperature reading.

3. Internal 8-bit Microcontroller Reads both the humidity and temperature elements, performs analog-to-digital conversion internally, and packages the result into a 40-bit digital signal for output.

4. Calibration Memory (OTP) Factory-written one-time programmable memory that stores calibration coefficients, eliminating the need for external calibration in the field.

5. Single-Wire Interface Circuit Manages the proprietary serial communication protocol, handling the handshake timing and data transmission to the host microcontroller.

Specifications

ParameterValue
Supply Voltage3.3V – 5.5V
Supply Current2.5mA (measurement), 150µA (standby)
Temperature Range0°C to +50°C
Humidity Range20% to 80% RH
Temperature Accuracy±2°C
Humidity Accuracy±5% RH
Temperature Resolution1°C
Humidity Resolution1% RH
Sampling Rate1 Hz (once per second, maximum)
Response Time6–10 seconds (in still air)
Data Format40-bit serial (single-wire)
Pull-up Resistor4.7kΩ – 10kΩ (recommended)
Operating Temperature0°C to +50°C
Storage Temperature-20°C to +60°C
Package Type4-pin SIP module
Output ImpedanceOpen-drain
Detailed specifications of the DHT11 sensor

Interfacing projects

Download the datasheet: PDF here

DHT11 with Raspberry pi

DHT11 with Arduino

DHT11 with ESP32

Leave a Comment