#include <LiquidCrystal_I2C.h>
#include <DHT.h>
DHT dht (17, DHT22);
LiquidCrystal_I2C lcd (0x27, 16, 2);
float T, H;
void setup() {
dht.begin();
lcd.init();
lcd.backlight();
}
void loop() {
T = dht.readTemperature();
H = dht.readHumidity();
lcd.setCursor (0,0);
lcd.print("T: ");
lcd.print(T);
lcd.print(" C");
lcd.setCursor(0,1);
lcd.print("H: ");
lcd.print(H);
lcd.print(" %");
delay(1000);
}