Wemos D1 Mini and DHT11 Shield Humidity & Temperature - seurat-atreides/Sonoff-Tasmota GitHub Wiki

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

sonoff.items:

 // 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(reachable.map)]" }
 Number DHT6_RSSI "DHT-6 RSSI [%d %%]"
            <qualityofservice>     (gRSSI)
            { mqtt="<[broker:tele/sonoff-dht-6/STATE:state:JSONPATH($.Wifi.RSSI)]" }

sonoff.sitemap

 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

https://www.thingiverse.com/thing:2814909

⚠️ **GitHub.com Fallback** ⚠️