#include <DHT.h> //incluir la lib
DHT sensor(13,DHT11);
float t=0;
float h=0;
float ic=0;
void setup(){
sensor.begin(); //Inicializamos el sensor
Serial.begin(9600);
}
void loop(){
t=sensor.readTemperature();
h=sensor.readHumidity();
ic=sensor.computeHeatIndex(false); //*C
//Para farenheit
/*t=sensor.readTemperature(true);
h=sensor.readHumidity();
ic=sensor.computeHeatIndex();*/
Serial.println("Humedad: " + String(h) + "% HR");
Serial.println("Temperatura: " + String(t) + "*C");
Serial.println("Indice: " + String(ic) + "*C");
delay(1000);
}