#include <DHT.h>
int led1 = 0;
int led2 = 4;
int led3 = 16;
DHT dht = DHT(2, DHT22);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(2, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print("temp. ");
Serial.println(dht.readTemperature());
Serial.print("humi. ");
Serial.println(dht.readHumidity());
delay(100); // this speeds up the simulation
}