Humidity and Temperature Measurement Using Arduino: Submitted By
Humidity and Temperature Measurement Using Arduino: Submitted By
Humidity and Temperature Measurement Using Arduino: Submitted By
Measurement Using
Arduino
Submitted By:-
Jitender (160131500021)
Mithlesh (160131500026)
Rohit (160131500042)
Sagar (160131500026)
Humidity and Temperature Measurement
Using Arduino
Humidity and temperature are common parameters
to measure environmental conditions. In this Arduino
based project we are going to measure ambient
temperature and humidity and display it on a LCD
screen.
Humidity and Temperature Measurement
Using Arduino
In this work, We are mainly using :-
Arduino
DHT11
16*2 LCD
DHT 11
Temperature Range 0-50ºC/±2ºC
Operating Voltage 3 - 5V
Step 2:
The MCU initiates data transmission by issuing a “Start”
signal. It first pulls the data line low for at least 18 ms and
then pulls it high for next 20-40 micro s before it releases it.
Step 3:
Next, the sensor responds to the MCU “Start” signal
by pulling the line low for 80 micro s followed by a logic high
signal that also lasts for 80 micros.
Step 4:
Calculate:
0011 0101+0000 0000+0001 1000+0000 0000= 0100 1101
Received data is correct.
Humidity:0011 0101=35H=53%RH
Temperature:0001 1000=18H=24℃
Arduino Uno
Flow Diagram of Humidity and
Temperature Measurement system
Display
humidity
Pass the and temp
data to on LCD
Arduino
Sense the
humidity
and temp
using DHT11
Circuit Diagram of Humidity and Temperature
Measurement system
Humidity and Temperature Measurement
Using Arduino
Humidity and Temperature Measurement system
(Data line Diagram)
Ardunio sends
signal to DHT11.
After detects it will
send signal to
ardunio.
Prepare data
transmission.
Code for display Humidity and Temperature
In programming, we are going to use pre-built libraries for DHT11 sensor and LCD
display module.
#include <dht.h>
#define dataPin 8 // Defines pin number to which the sensor is connected
dht DHT; // Creats a DHT object
void setup() {
Serial.begin(9600);
}
Code for display Humidity and Temperature
void loop() {
int readData = DHT.read11(dataPin); // Reads the data from the sensor
float t = DHT.temperature; // Gets the values of the temperature
float h = DHT.humidity; // Gets the values of the humidity
// Printing the results on the serial monitor
Serial.print("Temperature = ");
Serial.print(t);
Serial.print(" *C ");
Serial.print(" Humidity = ");
Serial.print(h);
Serial.println(" % ");
delay(2000); // Delays 2 secods, as the DHT22 sampling rate is 0.5Hz
}
Why it is beneficiary