#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
#include <DHT.h>;

#define DHTPIN 7     // what pin we're connected to
#define DHTTYPE DHT22   // DHT 22  (AM2302)

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 16 chars and 2 line display

DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino

float hum;  //Stores humidity value
float temp; //Stores temperature value

void setup()
{
  lcd.init();
  lcd.backlight();
  dht.begin();
}


void loop()
{
  delay (2000);
  Hutemp();
}

void Hutemp()
{
  hum = dht.readHumidity();
  temp= dht.readTemperature();
  // Print a message to the LCD.
  lcd.setCursor(2,0);
  lcd.print("Humi :" + (String)hum);
  lcd.setCursor(2,1);
  lcd.print("Temp :" + (String) temp);
}