fbpx

Interface Humidity Sensor with Arduino Uno

Humidity is the presence of water in air.

  • The amount of watervapor in air can affect many manufacturing processes in industries.
  • Humidity sensing is very important, especially in the control systems for industrial processes and human comfort.
  • Humidity sensors are divided into two types:
    1. Relative humidity sensors.
    2. Absolute humidity sensors.
  • Humidity measurement can be done using
    1.Dry and wet bulb hygrometers,
    2.Dew point hygrometers,
    3.Electronic hygrometers.
  • More often Electronic hygrometers is called as Humidity sensor
  • Electronic type hygrometers or humidity sensors is classified into two categories:
    1. Based on capacitive effect,
    2. Based on resistive effect.

Application

  • Weather Monitoring System.
  • Manufacturing Industry.

Hardware Required

  • Humidity Sensor.
  • Arduino.

Pin Diagram

  • VCC: +5v.
  • OutPut: Analog Output.
  • GND: GND.

Circuit

Code

 #include <dht.h>
 dht DHT;
 void setup()
 {
 Serial.begin(9600);
 Serial.println("Humidity and temperature\n\n");
 delay(700);
 }
 void  loop()
 {
 DHT.read11(dht_dpin);
 Serial.print("Current humidity = ");
 Serial.print(DHT.humidity);
 Serial.print("% ");
 Serial.print("temperature = ");
 Serial.print(DHT.temperature);
 Serial.println("C ");
 delay(800);
 } 

Leave a Reply

Your email address will not be published. Required fields are marked *