Read temperature and humidity from nodemcu ESP12E with DHT11 and show it on HTML webpage(Local)

Read temperature and humidity from nodemcu ESP12E with DHT11 and show it on HTML webpage(Local)
Featured

Read temperature and humidity from nodemcu ESP12E with DHT11 and show it on HTML webpage(Local)

Introduction

Read temperature and humidity from nodemcu ESP12E with DHT11 and show it on HTML webpage which will be in local network. We are going to program our ESP12E in such a way that it will return the JSON object and content will be temperature and humidity respectively. Note that our ESP12E Nodemcu is acting as a local server itself. Which will accept get request coming from the user and return the temperature and humidity by reading it from our DHT11 sensor. The reason it can be accessed locally is because the IP address which your Nodemcu gets in the network is local and can only be accessed within the network. I am going to write another tutorial on accessing the temperature and humidity given by ESP12E Nodemcu from anywhere in the world later.

(Note : Check out my previous tutorials
Getting Started with ESP12E Node MCU
Controlling LED on node MCU from local server )

BOM

You will need below bill of material for this experiment.

  • Half Size Breadboard - 1
  • ESP12E (Node MCU) Development Board- 1
  • Micro USB Cable - 1
  • 10k Resistor - 2
  • DHT11 Temperature and Humidity Sensor - 1

If you don't have the components, you can buy it from the below links (Most of the general components like LED and wire, you can easily get from local market. I am just listing out the important and specific components).

For USA

DHT 11 Temperature and Humidity Sensor : DHT11 Digital Temperature and Humidity Sensor NEW
Half Size Breadboard :Solderless Breadboard with 400 Tie-Point (White)
Micro USB Cable : Universal Micro USB Flat Data Cable -Rock Original-Grey
ESP12E Node MCU development Board : ESP12E Node MCU development Board

For India

DHT 11 Temperature and Humidity Sensor : SMAKN DHT11 / DHT-11 Digital Temperature and Humidity Sensor
Half Size Breadboard :Solderless Breadboard with 400 Tie-Point (White)
Micro USB Cable : Universal Micro USB Flat Data Cable -Rock Original-Grey
ESP12E Node MCU development Board : ESP12E Node MCU development Board

Click on any of the below lessons to start.

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,