#include <dht.h>
dht DHT;
#define DHT22_PIN 3
void setup() {
Serial.begin(115200);
Serial.println("Menampilkan Humidity dan Temperature");
}
void loop() {
Serial.print("DHT22, \t");
uint32_t start = micros();
int chk = DHT.read22(DHT22_PIN);
uint32_t stop = micros();
Serial.print(DHT.humidity);
Serial.print(",\t");
Serial.print(DHT.temperature);
Serial.println(",\t");
delay(2000);
}