Sensor DHT11 (Temperature and Humidity sensor)
The text below is directly imported from the github project page. It is the same as the README.md document found there.
Wemos D1 mini with DHT11 sensor
This firmware is meant to be used on a Wemos D1 Mini with a DHT-11 shield. It’s part of the IoT Kit for education project. There are several shields available, make sure you get one that has the DHT-11 connected to D4 and not the I2C version. Aliexpress has this one for sale.
Connecting the hardware
Connect the hardware as follows:
|DHT11||Wemos D1 mini|
If all is configured well you should receive measurements on the following topics:
<base_topic>/<device_id>/temperature/temperature <base_topic>/<device_id>/temperature/json <base_topic>/<device_id>/humidity/humidity <base_topic>/<device_id>/humidity/json
Temperature and humidity are reported as floating point values. The JSON output contains the name of the sensor, the name of the metric reported and the value of the measurement.