DHT11 Temperature and Humidity Sensor With Arduino

2
349

In these tutorials, we will measure Temperature and Humidity by using DHT11 with Arduino. Here we also display those readings on an LCD Display.

The DHT11 Temperature and Humidity Sensor senses, measures and regularly reports the relative humidity in the air. It measures both moisture and air temperature. The warmer the air is, the more moisture it can hold, so relative humidity changes with fluctuations in the temperature.

Humidity sensors detect the relative humidity of immediate environments in which they are placed. They measure both moisture and temperature in the air and express relative humidity as a percentage of the ratio of moisture in the air to the maximum amount that can be held in the air at the current temperature. As the air becomes hotter, it holds more moisture, so the relative humidity changes with the temperature.

dht11 temperature and humidity sensor
DHT11 temperature and humidity sensor

Components List

Pin Connection of DHT11

DHT11 Arduino Pins
Vcc +5v 5v
GND GND
Vout (out) A0

Circuit Diagram of DHT11 with Arduino

Circuit Diagram of DHT11 with Arduino

DHT11 Library For Below Code

DHT Library

DHT11 Temperature and Humidity Sensor Arduino Code 1

Output 1

OUTPUT OF DHT11 WITH ARDUINO CODE 1

Library Used in Below Code

DHT Library
Adafruit Unified Sensor

DHT11 Arduino Code 2

Output 2

OUTPUT OF DHT11 WITH ARDUINO CODE 2

Circuit Diagram of Arduino DHT11 and LCD

Circuit of Arduino DHT11 LCD

Arduino DHT11 LCD 16x2 Code 3

Our Youtube Channel