#include <DHT.h>
#define DHT_PIN 11
#define DHT_TYPE DHT22
DHT dht(DHT_PIN, DHT_TYPE);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
dht.begin();
}
void loop() {
// put your main code here, to run repeatedly:
delay(1000);
float umidade = dht.readHumidity();
Serial.println("Umidade: " + (String)umidade);
float temperatura = dht.readTemperature();
Serial.println("Temperatura: " + (String)temperatura);
}