Arduino based Temperature and Humidity monitoring system :
Hey guys, welcome to meworkstelugu. In this article, we will make a project based on Arduino and DTH11 temperature sensor this project will help to know about the temperature and humidity levels in the environment we see the temperature and humidity levels on 16*2 LCD display. Now lets talk about what are the components required to make this project
components for temperature and humidity monitoring system :
- Arduino BuyNow
- DTH11 temperature sensor BuyNow
- 16*2 LCD display BuyNow
- breadbord and wires BuyNow
If you want to buy Arduino components, I am giving my affiliate links. If you buy the components using my affiliate links, it will help to our channel and website growth. so do these small help.
making video:
circuit diagram:
code :
#include <LiquidCrystal.h>
#include <DHT.h>
#define Type DHT11
int sensePin=3;
DHT HT(sensePin,Type);
float humidity;
float tempC;
const int rs = 8, en = 9, d4 = 10, d5 = 11, d6 = 12, d7 = 13;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup()
{
lcd.begin(16,2);
HT.begin();
Serial.begin(9600);
}
void loop()
{
humidity=HT.readHumidity();
tempC=HT.readTemperature();
lcd.setCursor(0,0);
lcd.print("temp=");
lcd.setCursor(6,0);
lcd.print(tempC);
lcd.print(" C");
lcd.setCursor(0,1);
lcd.print("humidity=");
lcd.setCursor(10,1);
lcd.print(humidity);
lcd.print("%");
}
If you have any doubts and problems regarding to this project, contact me on my social media accounts
0 Comments