Serial.print(f);
Serial.print(" *F\t");
Serial.print("Heat index: ");
Serial.print(hic);
Serial.print(" *C ");
Serial.print(hif);
Serial.println(" *F");
}
But this time I had an error during compilation, as DHT library is missing:
1
2
3
4
5
6
D1_mini_Examples
/
04.Shields
/
DHT_Pro_Shield
/
Simple
/
Simple
.ino
:
10
:
17
:
fatal
error
:
DHT
.h
:
No such
file
or
directory
#include "DHT.h"
^
compilation
terminated
.
exit
status
1
Error compiling
for
board WeMos D1
R2
&
amp
;
mini
.
To fix that error, go to Sketch->Include Library->Manage Libraries, input dht to filter the library, and
install DHT sensor library by Adafruit.
Now click on the Upload button again, the code will be compiled and uploaded to the board. Now open
the serial monitor with Ctrl+Shift M or Tools->Serial Monitor, and you should see the printed values for
the humidity in percent as well as the temperature & heat index in Celcius and Fahrenheit.