#include <DHT.h>
#define Type DHT11
int sensepin=2;
DHT HT(sensepin,Type);
float humidity;
float tempc;
float tempf;
int dt=500;
#include <LiquidCrystal.h>
int rs=7;
int en=8;
int d4=9;
int d5=10;
int d6=11;
int d7=12;
int j;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
HT.begin();
lcd.begin(16,2);
delay(dt);
}
void loop() {
  // put your main code here, to run repeatedly:
humidity=HT.readHumidity();
tempc=HT.readTemperature();
tempf=HT.readTemperature(true);
lcd.setCursor(0,0);
lcd.print("humidity = ");
lcd.print(humidity);
lcd.setCursor(0,2);
lcd.print("temp C = ");
lcd.print(tempc);
lcd.print(" C");
}