Skip to content

Wemos D1 Mini and DHT11 Shield Humidity & Temperature

Jörg Ostertag edited this page Jul 28, 2018 · 4 revisions

DHT11 Shield Humidity & Temperature (single pin - retired)

From the Wemos DHT11 shield specs the DATA OUT pin is connected to D4 of the Wemos.

Note: this is ONLY for v1.0.0 of the DHT11 shield, since v2.0.0 uses I2C and pinned differently.

Tasmota Configuration

In the Configuration -> Configure Module page, select the following:

  • D4 GPIO2 : 01 DHT11

Tasmota Main

After reboot of the device the temperature and humidity are displayed.

Note: Having the shield compact on top of the processor increases the temperature. In normal Mode this can be up to 6°C. So you should add sleep mode. Adding normal "Sleep 100" and putting the sensor vertically reduces the temperature difference to 2°C

OpenHab configuration


 // DHT-6
 Number DHT6_Temp "Bathroom DHT-6 [%.1f °C]"
            <temperature>          (gTemperature,gTemperatureRoom)
            { mqtt="<[broker:tele/sonoff-dht-6/SENSOR:state:JSONPATH($.DHT11.Temperature)]" }
 Number DHT6_Humidity "Bathroom DHT-6 [%.1f %%]"
            <humidity>             (gHumidity)       
            { mqtt="<[broker:tele/sonoff-dht-6/SENSOR:state:JSONPATH($.DHT11.Humidity)]" }
 Switch DHT6_Reachable "DHT-6 reachable"
            <contact>              (gReachable)      
            { mqtt="<[broker:tele/sonoff-dht-6/LWT:state:MAP(]" }
 Number DHT6_RSSI "DHT-6 RSSI [%d %%]"
            <qualityofservice>     (gRSSI)
            { mqtt="<[broker:tele/sonoff-dht-6/STATE:state:JSONPATH($.Wifi.RSSI)]" }


 Frame {
              Text item=DHT6_Temp  labelcolor=[DHT6_Reachable == "ON" = "green",DHT6_Reachable == "OFF" = "red"] {
                   Text item=DHT6_Temp
                   Text item=DHT6_Humidity
                   Text item=DHT6_Reachable
                   Text item=DHT6_RSSI

Printable Housing

Clone this wiki locally
You can’t perform that action at this time.