DHT22 is a compound digital temperature and humidity sensor which outputs calibrated digital signals. Thanks to the dedicated digital module acquisition technology and  temperature and humidity sensing technology applied to the module, DHT22 comes with very high reliability and excellent long-term stability.
 
DHT22 includes a capacitive moisture sensor and a NTC temperature measuring element which is connected to a high-performance 8-bit microcontroller, resulting an excellent quality, super fast response time, strong anti-interference ability and extremely cost-efficient.
 
Compared with SHT10 temperature and humiditiy sensor, DHT22 enjoys a higher precision and lower price, making it an ideal choice for mid price range, high performance temperature and humidity sensors.
 
If used together with Arduino expansion boards, you'll easily get interactives of correlation between temperature and humidity perception.
 
Note: DHT22 digital temperature and humidity sensor is designed for analog sensor interfaces. The analog interface is used as a digital one which will not occupy other digital interfaces on the Arduino. You can also use the analog-to-digital-converting cable to connect DHT22 to digital interfaces.

Specification

  • Supply Voltage: 5V
  • Temperature Range:-40-80℃ / resolution0.1℃ / error <±0.5℃
  • Humidity Range: 0-100%RH /  resolution0.1%RH / error±2%RH
  • Temperature Response Time: condition: 1/e(63%)  Min 6s  Max  20s
  • Humidity Response Rime: condition: 1/e(63%)25℃, 1m/s in the air <5S
  • Interface Sequence: VCC, GND, Signal
  • Size: 38 x 20mm

Parts List

  • DHT22 sensor                         x1
  • Analog sensor cable                     x1

Sample Code

Please download the Library of DHT22 at first.This program is used to test the temperature and humidity of the DHT22

 
//DHT11 -- DIGITAL 7
#include <DHT22.h>  
// Only used for sprintf
#include <stdio.h>

// Data wire is plugged into port 7 on the Arduino
// Connect a 4.7K resistor between VCC and the data pin (strong pullup)
#define DHT22_PIN 7

// Setup a DHT22 instance
DHT22 myDHT22(DHT22_PIN);

void setup(void)
{
  //start serial port
  Serial.begin(9600);
  Serial.println("DHT22 Library Demo");
}

void loop(void)
{ 
  DHT22_ERROR_t errorCode;
  // The sensor can only be read from every 1-2s, and requires a minimum
  // 2s warm-up after power-on.
  delay(2000); 

  Serial.print("Requesting data...");
  errorCode = myDHT22.readData();
  switch(errorCode)
  {
    case DHT_ERROR_NONE:
     Serial.print("Got Data ");
     Serial.print(myDHT22.getTemperatureC());
     Serial.print("C ");
     Serial.print(myDHT22.getHumidity());
     Serial.println("%");
     /*Alternately, with integer formatting which is clumsier but more compact to store and*/
     /*can be compared reliably for equality:*/	  
     char buf[128];
     sprintf(buf, "Integer-only reading: Temperature %hi.%01hi C, Humidity %i.%01i %% RH",
                  myDHT22.getTemperatureCInt()/10, abs(myDHT22.getTemperatureCInt()%10),
                  myDHT22.getHumidityInt()/10, myDHT22.getHumidityInt()%10);
     Serial.println(buf);
     break;
   case DHT_ERROR_CHECKSUM:
     Serial.print("check sum error ");
     Serial.print(myDHT22.getTemperatureC());
     Serial.print("C ");
     Serial.print(myDHT22.getHumidity());
     Serial.println("%");
     break;
   case DHT_BUS_HUNG:
     Serial.println("BUS Hung ");
     break;
   case DHT_ERROR_NOT_PRESENT:
     Serial.println("Not Present ");
     break;
   case DHT_ERROR_ACK_TOO_LONG:
     Serial.println("ACK time out ");
     break;
   case DHT_ERROR_SYNC_TIMEOUT:
     Serial.println("Sync Timeout ");
     break;
   case DHT_ERROR_DATA_TIMEOUT:
     Serial.println("Data Timeout ");
     break;
   case DHT_ERROR_TOOQUICK:
     Serial.println("Polled to quick ");
     break;
  }
 }

DHT22 Temperature and Humidity Sensor

  • Brand: DFRobot
  • Product Code: DFR-SEN0137
  • Reward Points: 10
  • Availability: 2
  • £11.86

  • Ex Tax: £9.88
  • Price in reward points: 200

DHT11 Temperature and Humidity Sensor

DHT11 Temperature and Humidity Sensor

£6.20

DHT11 Temperature and Humidity Sensor features a calibrated digital signal output with the ...

Qty: 1

SHT1x Humidity and Temperature Sensor

SHT1x Humidity and Temperature Sensor

£18.00

This Humidity and Temperature Sensor features a precision humidity chamber calibrated SHT1x

Qty: 3

Digital Temperature and Humidity Sensor (with Stainless Steel Probe)

Digital Temperature and Humidity Sensor (with Stainless Steel Probe)

£40.44

This is an anti-rust, robust and precise SHT1x sensor, which can master enterprise-class and ...

Out Of Stock

DHT11 Basic Temperature-Humidity Sensor + Extras [386]

DHT11 Basic Temperature-Humidity Sensor + Extras [386]

£7.98

The DHT11 is a basic, ultra low-cost digital temperature and humidity senso

Out Of Stock

DHT11 Temperature-Humidity Sensor

DHT11 Temperature-Humidity Sensor

£5.21

This is a calibrated digital temperature and humidity module with onboard sensor DHT11.

Qty: 1

DHT22 Temperature-Humidity Sensor (AM2302)

DHT22 Temperature-Humidity Sensor (AM2302)

£11.22

It can be used for detecting ambient temperature and humidity, through the standard single-wire ...

Qty: 1