esp8266 dht11 mqtt - working by notanatheist

Arduino IDE code for ESP8266 with DHT11 and MQTT. Works on Wemos as well. See notes.
Code for DHT** on ESP8266 and Wemos with Arduino. Set Wemos DHT pin to D4 if using the DHT shield (at least for DHT11) Copy/paste/modify and enjoy! Visit eviltechmonkey.com for my adventures.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:316691" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>