Humdity Sensor(DHT11)

A DHT11 Sensor is a built in with a temperature sensor and moisture plates. They consist of a humidity sensing component, a NTC temperature sensor (or thermistor) and an IC on the back side of the sensor.

Working Principle:

For measuring humidity, it comprises of a built-in plate holding moisture which allow them to sense it. they use the humidity sensing component which has two electrodes with moisture holding substrate between them.

So as the humidity changes, the conductivity of the substrate changes or the resistance between these electrodes changes. This change in resistance is measured and processed by the IC which makes it ready to be read by a microcontroller.

For measuring temperature these sensors use an NTC temperature sensor or a thermistor.

A thermistor is actually a variable resistor that changes its resistance with change of the temperature.

These sensors are made by sintering of semi conductive materials such as ceramics or polymers in order to provide larger changes in the resistance with just small changes in temperature.

The term “NTC” means “Negative Temperature Coefficient”, which means that the resistance decreases with increase of the temperature.

Types of Sensors:





Technical Specifications: Item Measurement Range Humidity Accuracy Temperature Accuracy Resolution 20-90%RH 0-50 ℃ ±5%RH ±2℃ 1 4 Pin Single Row


Link to datasheet: 




Excellent, fast and response with 8-bit microcontrollers.



 It has limited long term stability. 
 It is sensitive to dewing and certain aggressive substances. 




Internal circuitry:

Interfacing With Arduino

 Arduino Code:


#include “dht.h”

#define dht_apin A2 // Analog Pin sensor is connected to


dht DHT;


void setup()




  delay(500);//Delay to let system boot

  Serial.println(“DHT11 Humidity & temperature Sensor\n\n”);

  delay(1000);//Wait before accessing Sensor


}//end “setup()”


void loop()


  //Start of Program




    Serial.print(“Current humidity = “);


    Serial.print(“%  “);

    Serial.print(“temperature = “);


    Serial.println(“C  “)









  • Measure temperature and humidity
  • Local Weather station
  • Automatic climate control
  • Environment monitoring


Referral Links:…26116.28411.0.29061.….0…1c.1.64.img..7.0.0….0.GDE0-WAeH5c#imgrc=5mrRI-G6To2ZfM: