#include <LiquidCrystal_I2C.h>
#include <DHT.h>
LiquidCrystal_I2C lcd(0x27,16,2);
DHT sensor(13,DHT22);
float t=0, h=0, ic=0;
void setup(){
sensor.begin();
lcd.init();
lcd.backlight();
lcd.clear();
lcd.setCursor(4,0); //c,f
lcd.print("DOMOTICA");
lcd.setCursor(6,1); //c,f
lcd.print("RSNV");
delay(3000);
lcd.clear();
}
void loop(){
t=sensor.readTemperature();
h=sensor.readHumidity();
ic=sensor.computeHeatIndex(false);
lcd.setCursor(0,0); //c,f
lcd.print("T: "+String(t)+"*C");
lcd.setCursor(0,1); //c,f
lcd.print("H: "+String(h)+"% HR");
delay(1000);
lcd.clear();
}