#include<DHT sensor library>
#include <LiquidCrystal.h>
#include <Adafruit_Sensor.h>
#include "DHT.h"
#define DHTPIN 5
#define DHTTYPE DHT22
#include <LiquidCrystal.h>
LiquidCrystal lcd(19,23,18,17,16,15);
DHT dht(DHTPIN, DHTTYPE);
void setup() {
// put your setup code here, to run once:
//Serial.begin(9600);
dht.begin();
lcd.begin(16,2);
}
void loop() {
// put your main code here, to run repeatedly:
delay(2000); // this speeds up the simulation
float h= dht.readHumidity();
float t= dht.readTemperature();
// Serial.print("Humidity :\t");
// Serial.print(h);
lcd.setCursor(0,0);
lcd.print( "Humi :");
lcd.print( h);
// Serial.print("%\n");
// delay(500);
// Serial.print("Temperature :\t");
// Serial.print(t);
// Serial.print("*C \n");
lcd.setCursor(0,1);
lcd.print( "Temp :");
lcd.print(t);
}