#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include "DHT.h"

#define DHTPIN 2
#define DHTTYPE DHT22
DHT dht(DHTPIN,DHTTYPE);
LiquidCrystal_I2C lcd(0x27, 16, 2);

int cek;
float temp;

void setup() {
  lcd.init();
  Serial.begin(9600);
  lcd.backlight();
  lcd.setBacklight(HIGH);
}

void loop() {
  delay(2000);
  temp = dht.readTemperature();
  lcd.setCursor(0,0);

  lcd.print("Temp : ");
  lcd.println(temp);
  lcd.print("C");

Serial.print("Temp : ");
Serial.print(temp);
Serial.print("Celsius\n");
}