0% found this document useful (0 votes)
69 views

Temperature and Humidity Module

The DHT11 digital temperature and humidity sensor module contains a calibrated digital signal output for temperature and humidity readings. It uses a dedicated digital collection technology along with temperature and humidity sensing to provide reliable and stable long-term readings. The sensor module outputs temperature data from an NTC temperature sensor and humidity data from a resistive wet component to a microcontroller.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views

Temperature and Humidity Module

The DHT11 digital temperature and humidity sensor module contains a calibrated digital signal output for temperature and humidity readings. It uses a dedicated digital collection technology along with temperature and humidity sensing to provide reliable and stable long-term readings. The sensor module outputs temperature data from an NTC temperature sensor and humidity data from a resistive wet component to a microcontroller.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Temperature and Humidity Module

DESCRIPTION:
DHT11 digital temperature and humidity sensor is a composite Sensor contains a
calibrated digital signal output of the temperature and humidity. Application of a
dedicated digital modules collection technology and the temperature and humidity
sensing technology, to ensure that the product has high reliability and excellent long-
term stability. The sensor includes a resistive sense of wet components and an NTC
temperature measurement devices, and connected with a high-performance 8-bit
microcontroller.

Specification:
● Model No : DHT11
● Voltage : 5V DC
● Temperature Range : 0~50℃
● Humidity Range : 20~90%
● Accuracy : +/-0.2℃,+/-5%

PIN CONFIGURATION:

1、 “S”: Analog output pin,real-time output voltage signal


2、 “+” : +5V
3、 “-” :GND

1/3
Example:
Here is an example for displaying realtime temperature and ambient humidity. You
can open the serial monitor to see the display effect.
The connection is as follows:

Code:
#include <dht_nonblocking.h>
#define DHT_SENSOR_TYPE DHT_TYPE_11
static const int DHT_SENSOR_PIN = 8;
DHT_nonblocking dht_sensor( DHT_SENSOR_PIN, DHT_SENSOR_TYPE );

void setup( )
{
Serial.begin( 9600);
}
void loop( )
{
float temperature;
float humidity;

2/3
if(dht_sensor.measure(&temperature, &humidity)){
Serial.print( "T = " );
Serial.print( temperature, 1 );
Serial.print( " deg. C, H = " );
Serial.print( humidity, 1 );
Serial.println( "%" );
}
}

Result:

3/3

You might also like