HUMIDITY SENSOR
HUMIDITY SENSOR
A humidity sensor (or hygrometer) senses, measures
and reports the relative humidity in the air. It therefore measures both
moisture and air temperature. Relative humidity is the ratio of actual moisture
in the air to the highest amount of moisture that can be held at that air
temperature. We can interface humidity sensor with Arduino to measure the
humidity in air.
Application:
- Used in industries to maintain a optimum humidity level.
- Climate control.
- Humidity monitoring.
Sample Project With Arduino:
In this we going to measure the level of humidity in the air by using the DHT 11 or humidity sensor.
Materials required:
- Humidity sensor
- Arduino UNO
- Jumper Wires
Circuit:
Code:
#include <DHT.h>
#define dht_apin A0
Dht DHT;
void setup()
{
Serial.begin(9600);
delay(500);
Serial.println(“Humidity and Temperature Sensor \n\n”);
delay(1000);
}
void loop()
{
DHT.read11(dht_apin);
Serial.print(“Current Humidity = “);
Serial.print(DHR.humidity);
Serial.print(“%
“);
Serial.print(“temperature = “);
Serial.print(DHT.temperature);
Serial.println(“C “)’
delay(5000);


Comments
Post a Comment