#include <LCD_I2C.h>
LCD_I2C lcd(0x27, 16, 2);
#include <DHT.h>
#define DHTPIN 8
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
void setup()
{
lcd.begin();
dht.begin();
delay(2000);
}
void loop()
{
lcd.backlight();
lcd.setCursor(0,0);
lcd.print("PEAR PLAI BONUS");
float t = dht.readTemperature();
float h = dht.readHumidity();
float f = dht.readTemperature(true);
lcd.setCursor(0,1);
lcd.print("H: ");
lcd.print(h,1);
lcd.print("T: ");
lcd.print(t,1);
lcd.print(" C");
}