#include <DHT.h>;
#include <LiquidCrystal.h>
//Constants
#define DHTPIN 2
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
//Variables
int chk;
float hum; //Stores humidity value
float temp; //Stores temperature value
void setup()
{
Serial.begin(9600);
dht.begin();
}
void loop()
{
delay(2000);
hum = dht.readHumidity();
temp= dht.readTemperature();
lcd.begin(16, 1);
lcd.print("Temp: ");
lcd.print(temp);
delay(10000);
}