#include <LiquidCrystal_I2C.h>
#include <DHT.h>
#define DHTPIN 8
#define DHTTYPE DHT22
DHT dht (DHTPIN, DHTTYPE);
LiquidCrystal_I2C lcd(0x27, 16, 2);


void setup() {
//Serial.begin(9600);
//Serial.println("pembacaan suhu");
lcd.begin(16, 2);
dht.begin();

}

void loop() {
float suhu = dht.readTemperature();
float kelembaban = dht.readHumidity();
delay(500);

lcd.setCursor(0,0);
lcd.print(suhu);
lcd.setCursor(0,1);
lcd.print(kelembaban);

}