#include <DHT.h>
#include <LiquidCrystal.h>
#define data 2
#define DHTType DHT22
const int rs = 12, en=11,d4=5,d5=4,d6=3,d7=2;
LiquidCrystal lcd(12,11,10,9,8,7);
DHT dht(data, DHTType);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
dht.begin();
}
void loop() {
// put your main code here, to run repeatedly:
float air_temp =dht.readTemperature();
float humidity = dht.readHumidity();
lcd.setCursor(0, 0);
lcd.print(String("temp.=")+ String(air_temp));
lcd.setCursor(0, 1);
lcd.print(String("humidity.=")+String(humidity));
delay(2000);
}