//koding untuk penggunaan DHT11

#include "DHT.h"
#define DHTPIN 15
#define DHTTYPE DHT11
DHT cekSuhuLembab(DHTPIN, DHTTYPE);

void setup(){
  Serial.begin(9600);
  cekSuhuLembab.begin();
}

void loop()
{ 
  float suhu = cekSuhuLembab.readTemperature();
  float lembab = cekSuhuLembab.readHumidity();
  Serial.print("Suhunya : ");
  Serial.print(suhu);
  Serial.println("°C");
  Serial.print("Kelembabannya : ");
  Serial.print(lembab);
  Serial.println("%");
  delay(2000);
}