This script will read the sensor DHT11 data and it will create a simple server so the data is shown on a web page.
- ESP8266
I'm using the Wemos D1 Mini board.
- DHT11 Sensor
Take into account that I'm using a Wemos D1 mini and it's DHT11 shield, so in the script you'll see the d = dht.DHT11(machine.Pin(2))
and in the example page of the Micropython documentation they use other pin (4).
-
Better documentation.
-
Add execution images.