Skip to main content

Menu

DHT11 Digital Temperature & Humidity Sensor Module Arduino Compatible

ARD2-2215
Arduino Compatible DHT11 Digital Temperature & Humidity Sensor Module

$7.65

QTYPrice
1 $7.65

Description

This DHT11 based sensor measures both Temperature and Humidity in one package. Features include resistive humidity sensing components. It is durable, and has a fast response with great anti-interference ability. This DHT11 temperature and humidity sensor module uses a dedicated digital module and acquisition of temperature and humidity sensor technology to ensure the product with high reliability and excellent long-term stability. It is fully digitally operated so no analog-to-digital calibration is required. Perfect for DIY projects requiring temperature or humidity data.

Test Code

int DHpin = 8;
byte dat [5];

byte read_data () {
byte data;
for (int i = 0; i < 8; i ++) {
if (digitalRead (DHpin) == LOW) {
while (digitalRead (DHpin) == LOW);
// wait for 50us;
delayMicroseconds (30);
// determine the duration of the high level to determine the data is '0 'or '1';
if (digitalRead (DHpin) == HIGH)
data | = (1 << (7-i)); / / high front and low in the post;
while (digitalRead (DHpin) == HIGH); // data '1 ', wait for the next one receiver;
}
}
return data;
}

void start_test () {
digitalWrite (DHpin, LOW); // bus down, send start signal;
delay (30); // delay greater than 18ms, so DHT11 start signal can be detected;
digitalWrite (DHpin, HIGH);
delayMicroseconds (40); // Wait DHT11 response;
pinMode (DHpin, INPUT);

while (digitalRead (DHpin) == HIGH);
delayMicroseconds (80); // DHT11 a response, pulled the bus 80us;
if (digitalRead (DHpin) == LOW);
delayMicroseconds (80); // DHT11 80us after the bus pulled to start sending data;

// receives temperature and humidity data, the parity bit is not considered;
for (int i = 0; i <4; i + +)
dat [i] = read_data ();
pinMode(DHpin, OUTPUT);
// sending data once after releasing the bus, wait for the host to open the next Start signal;
digitalWrite(DHpin, HIGH);
}

void setup () {
Serial.begin (9600);
pinMode(DHpin, OUTPUT);
}

void loop () {
start_test ();
Serial.print ("Current humdity =");
Serial.print (dat [0], DEC); // display the humidity-bit integer;
Serial.print ('.');
Serial.print (dat [1], DEC); // display the humidity decimal places;
Serial.println ('%');
Serial.print ("Current temperature =");
Serial.print (dat [2], DEC); // display the temperature of integer bits;
Serial.print ('.');
Serial.print (dat [3], DEC); // display the temperature of decimal places;
Serial.println ('C');
delay (700);
}

Features

  • Measures both temperature & humidity
  • Fast response time
  • Single wire serial interface for easy system integration
  • Anti-interference capability
  • Ultra-small size & low power consumption
  • Signal transmission distance up to 20m

Specifications

Supply Voltage

3.3 - 5.5VDC

Output

Single-bus digital signal

Temperature Measuring Range

0 - 50°C

Humidity Measuring Range

20 - 90% RH

Temperature Accuracy

±2°C

Humidity Accuracy

±5% RH

Temperature Resolution

1°C

Humidity Resolution

1% RH

Long-term Stability

<±1% RH/Year

Storage temperature

10 - 40°C

Storage Humidity

<60% RH

Colour

Black/Blue

Material

PCB

Dimensions

Length

52 mm

Width

20 mm

Height

13 mm

Resources

You Might Also Like

All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.

DHT11 Digital Temperature & Humidity Sensor Module Arduino Compatible

ARD2-2215

$7.65

We use cookies to ensure you have the best experience on our site. If you continue to use this site you consent to the use of these cookies. OK

Find out more in our Privacy Policy