By combining a temperature and humidity sensor with a small lcd you can create a cheap weather station.
Arduino code for temperature and humidity sensor dht22.
In the following example i will be using an i2c character lcd like this one from amazon.
We ll explain how it works show some of its features and share an arduino project example that you can modify to use in your own projects.
It measures both moisture and air temperature.
How to use arduino to read temperature and humidity from sensor and display temperature and humidity on lcd how to combine dht11 dht22 code and lcd code how to program arduino step by step.
The dht22 am2302 sensor is able to measure temperatures from 40 to 125 c with an accuracy of 0 5 c and relative humidity levels from 0 to 100 with an accuracy of 2 5 at extremes to 10 and 90.
Learn how to use temperature and humidity sensor with arduino how to connect dht11 or dht22 temperature and humidity sensor to arduino how to program arduino step by step.
You can read more about using an i2c lcd with arduino.
The detail instruction code wiring diagram video tutorial line by line code explanation are provided to help you quickly get started with arduino.
The dht11 temperature and humidity sensor senses measures and regularly reports the relative humidity in the air.
There are various reasons why we went for the dht22 sensor in this tutorial for starters it is both small and highly affordable.
It s humidity range is 0 100 and temperature range is 40 125 c that s why i prefer dht22 as compared to dht11.
The detail instruction code wiring diagram video tutorial line by line code explanation are provided to help you quickly get started with arduino.
Complete guide for dht11 dht22 humidity and temperature sensor with arduino this article is a guide for the popular dht11 and dht22 temperature and humidity sensors with the arduino.
The following table compares some of the most important specifications of the dht11 and dht22 temperature and humidity sensors.
Guide for dht11 dht22 humidity and temperature sensor with arduino.
Here we also display those readings on an lcd display.
The dht11 and dht22 are very similar but differ in their specifications.
The dht 22 also named as am2302 is a digital output relative humidity and temperature sensor.
The dht22 sensor also known as the am2302 reference and his little brother the dht11 are temperature and humidity sensors.
It uses a capacitive humidity sensor and a thermistor to measure the surrounding air and spits out a digital signal on the data pin.
In these tutorials we will measure temperature and humidity by using dht11 with arduino.
I am using dht22 temperature and humidity sensor with arduino uno r3 and getting it s data from arduino serial monitor.
Before i go to next step i think i need to tell you some thing about dht22.
The dht22 has a long transmission distance with the cable length being able to be 20m.
Example code for dht11 and dht22 am2302 temperature and humidity sensor with i2c lcd and arduino.