Introduction:
This DHT11 Temperature and Humidity Sensor features calibrated digital signal output with the temperature and humidity sensor complex. Its technology ensures high reliability and excellent long-term stability. A high-performance 8-bit microcontroller is connected. This sensor includes a resistive element and a sense of wet NTC temperature measuring devices. It has excellent quality, fast response, anti-interference ability and high cost performance advantages.
Each DHT11 sensor features extremely accurate calibration data of humidity calibration chamber. The calibration coefficients stored in the OTP program memory, internal sensors detect signals in the process, and we should call these calibration coefficients. The single-wire serial interface system is integrated to make it quick and easy. Qualities of small size, low power, and 20-meter signal transmission distance make it a wide applied application and even the most demanding one. Convenient connection, special packages can be provided according to users need.
Specification:
- Supply Voltage: +5 V
- Temperature range: 0-50 °C error of ± 2 °C
- Humidity: 20-90% RH ± 5% RH error
- Interface: Digital
- Size: 30*20mm
- Weight: 4g
Connection Diagram:
Sample Code:
Please download the DHT11Lib firstly.Or,see the website
#include <dht11.h> dht11 DHT; #define DHT11_PIN 4 void setup(){ Serial.begin(9600); Serial.println("DHT TEST PROGRAM "); Serial.print("LIBRARY VERSION: "); Serial.println(DHT11LIB_VERSION); Serial.println(); Serial.println("Type,\tstatus,\tHumidity (%),\tTemperature (C)"); } void loop(){ int chk; Serial.print("DHT11, \t"); chk = DHT.read(DHT11_PIN); // READ DATA switch (chk){ case DHTLIB_OK: Serial.print("OK,\t"); break; case DHTLIB_ERROR_CHECKSUM: Serial.print("Checksum error,\t"); break; case DHTLIB_ERROR_TIMEOUT: Serial.print("Time out error,\t"); break; default: Serial.print("Unknown error,\t"); break; } // DISPLAT DATA Serial.print(DHT.humidity,1); Serial.print(",\t"); Serial.println(DHT.temperature,1); delay(1000); }
Project List
- Arduino Mega 2560 Project 1: Piranha LED Module
- Arduino Mega 2560 Project 2:Digital white LED module
- Arduino Mega 2560 Project 3: Passive Buzzer module
- Arduino Mega 2560 Project 4: Hall Magnetic Sensor
- Arduino Mega 2560 Project 5: LM35 Linear Temperature Sensor
- Arduino Mega 2560 Project 6: DS18B20 Temperature Sensor
- Arduino Mega 2560 Project 7: Digital Tilt Sensor
- Arduino Mega 2560 Project 8: Photocell sensor
- Arduino Mega 2560 Project 9: Digital Push Button
- Arduino Mega 2560 Project 10: Capacitive Touch Sensor
- Arduino Mega 2560 Project 11: DHT11 Temperature and Humidity Sensor
- Arduino Mega 2560 Project 12: Analog Sound Sensor
- Arduino Mega 2560 Project 13: Flame Sensor
- Arduino Mega 2560 Project 14: DS3231 Clock Module
- Arduino Mega 2560 Project 15: Analog Gas Sensor
- Arduino Mega 2560 Project 16: Analog Alcohol Sensor
- Arduino Mega 2560 Project 17: Water Sensor
- Arduino Mega 2560 Project 18: Soil Humidity Sensor
- Arduino Mega 2560 Project 19: Infrared Obstacle Avoidance Sensor
- Arduino Mega 2560 Project 20: PIR Motion Sensor
- Arduino Mega 2560 Project 21: Joystick Module
- Arduino Mega 2560 Project 22: Photo interrupter module
- Arduino Mega 2560 Project 23: 5V Relay Module
- Arduino Mega Project 24: ADXL345 Three Axis Acceleration Module
- Arduino Mega 2560 Project 25: Rotary Encoder module
- Arduino Mega 2560 Project 26: Analog Rotation Sensor
- Arduino Mega 2560 Project 27: HC-SR04 Ultrasonic Sensor
- Arduino Mega 2560 Project 28: Pulse Rate Monitor
- Arduino Mega 2560 Project 29: Reed Switch Module
- Arduino Mega 2560 Project 30: TEMT6000 ambient light sensor