Automatic WEATHER STATION using NodeMCU and DHT 11

Weather Station - IoT base using NodeMCu

Weather Station Project:

A Weather station using NodeMCU and DHT11 able to collects data related to the environment and weather using many different sensors. Using the home weather station, we can measure

    • Temperature
    • Humidity
    • Rain
    • gases percentage in air
    • UV index
    • Wind
    • Pressure – Barometric





The primary goals of this project to measure the temperature and humidity inside the room and then display this information on a server, including the present time and date. This project also capable of display the information as temperature and relative humidity outside the room.  


Components Used: 

DHT 11 : Temperature humidity Sensor

NodeMCU : IoT Development board USB cable  


Working Principle and Methodology:

In this project, I choose a very low-cost temperature and humidity sensor DHT11. It basically consists of a capacitive humidity sensor and a thermistor and this sensor also have the capability to convert the analog to a digital signal as a form of temperature and humidity, and this sensor has three-pin data pin, Vcc, and Gnd which is connected to the NodeMcu Esp8266 pins D4, Vcc and Gnd respectively.

After completing all hardware connection I am created an account on the server for I publish my data or information. Then I was set up the Adafruit account and Write down the program on Andruino Id. At last, I installed the program on my Nodemcu using a USB cable and after that, I run this program and open my serial monitor to check how it works.  


Weather station connection diagram (DHT11 and NodeMCU)

                     DHT11 sensor and its connection with NodeMcu - Weather Station                DHT11 sensor and its connection with NodeMcu - Weather Station  


Weather station Connection Diagram:

Connection diagram - Weather Station        

Connection diagram - Weather Station


Serial Monitor Output:

  Serial Monitor output 1 - Weather Station


Adafruit IO server setup and Data diagram  

Serial Monitor output 2 - temperature and Humidity measurement project Serial Monitor output 3 - temperature and Humidity measurement project   Serial Monitor output 4 for temperature and Humidity measurement project  



See also:  Temperature and Humidity measurement using Arduino


Conclusion : 

In this project, a weather station has been developed to measure the temperature and relative humidity inside or outside the room at the present time and then share this information on a server through the internet where it can be processed and monitoring for various interesting purposes.  

Let us know what you think about the “Automatic Weather Station using NodeMCU ” in the comment section below.


See also: IoT Weather Station Using Node-Red as MQTT Broker


If you like this post subscribe to our YouTube Channel for IoT video Tutorials. You can also find us on Twitter, Facebook, and Instagram for more updates.  

IoTDunia is working towards a vision of empowering the youth by providing them with great professional opportunities with Internet of Things to build world class ecosystem.