DHT-11 Digital Temperature & Humidity Sensor
Specifications
- Measuring Range
- Temperature: 0 to 50°C (±2°C)
Humidity: 20% to 80% RH (±5% RH) - Resolution
-      Temperature: 1°C
Humidity: 1% RH - Operating Voltage
- 3.5V to 5.5V DC
- Current Consumption
- ~2.5mA (typical)
- Sampling Rate
- 1 sample/1-2 seconds
- Dimensions
- 40mm x 20mm x 15mm
- Communication
- Single-wire digital protocol
Key Features
- Digital output (no ADC required)
- Pre-calibrated from factory
- Low-cost solution
- Simple single-wire interface
- Low power consumption
Arduino Connection
- Connect VCC to 5V
- Connect GND to ground
- Connect DATA to digital pin 7
#include "DHT.h"
#define DHTPIN 7 // Digital pin connected
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(9600);
dht.begin();
}
void loop() {
delay(2000);
float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t)) {
Serial.println("Sensor error!");
return;
}
Serial.print("Humidity: ");
Serial.print(h);
Serial.print("%\tTemperature: ");
Serial.print(t);
Serial.println("°C");
}
Limitations
- ±2°C temperature accuracy
- 1-2 second sampling interval
- Limited to 0-50°C range
- Not waterproof design
Typical Applications
- Home automation systems
- Basic weather stations
- Greenhouse monitoring
- HVAC system prototypes
Reviews
There are no reviews yet.