Skip to content

Monitor the Temperature and Humidity on any internet-connected device have Web Browser and also upload that data to ThingSpeak IoT Analytics Platform.

License

Notifications You must be signed in to change notification settings

pranavkhatale/IoT-based-Weather-Station-using-ThingsSpeak-IoT-Analytics-Platform

Repository files navigation

Welcome to the IoT-based-Weather-Station-using-ThingSpeak-IoT-Analytics-Platform wiki!

Monitor the Temperature and Humidity on any internet-connected device have a Web Browser and also upload that data to ThingSpeak IoT Analytics Platform.

Project Image1

Block Diagram:

Required components & tools:

Hardware Quantity
NodeMCU ESP8266-12E Board 1
DHT11 Sensor Module 1
Jumper Wires (Male-to-Female) 3
Breadboard 1
USB Cable 1
Software & Online tools
Arduino IDE
Web Browser
Thingspeak Account

Prerequisites:

  • Arduino IDE with ESP8266 add-on installed.

Circuit description and working:

The circuit diagram for monitoring humidity and temperature is shown in the figure below. It is built around NodeMCU ESP8266-12E board, DHT11 Sensor, and few jumper wires on the solderless breadboard.

Schematic:

Fritzing Schematic Diagram The DHT11 sensor senses humidity and temperature, and sends the information to digital pin D2 of NodeMCU ESP8266-12E board, as shown in the above figure. From NodeMCU, humidity and temperature values are uploaded to the Cloud at regular intervals of time through the NodeMCU ESP8266 Wi-Fi module. From the Cloud, humidity and temperature values can be seen graphically on the ThingSpeak platform from anywhere in the world.

Construction and testing:

Go to ThingSpeak website on a Web Browser. Thingspeak is an IoT analytics platform but you need to register to use it. After registering, login to your account and Create a new channel with Name, add Description, Temperature as Field1, and Humidity as Field2 (tick the square boxes shown in front of it), you can add Elevation, Latitude & Longitude of the place where you are installing this weather station (tick Show Channel Location) as shown in the figure below. Finally don't forget to tick the Show Status square box & click Save Channel.

Once a new channel is created, go to API Keys tab, ThingSpeak will generate two API keys, namely, write an API key and read the API key. Replace the line given below in the program with your write API key:

String apiKey = “NTIM1RXET6YVUVWF“;

Next, substitute const char *ssid and const char *pass with your Wi-Fi name and Wi-Fi password in the two lines given below in the program (code_Weather_Station.ino):

const char *ssid = "DLinkWiFi";

const char *pass = "Pass@123";

The program should be verified with your Wi-Fi setup. It uses the dht library. If the dht library is not present in your Arduino IDE. Go to your PC's File Explorer > Documents > Arduino > libraries. Create a new folder named dht in lower case only, Download the dht.h & dht.cpp files & paste both the files in that dht folder. Close the Arduino IDE.

Open Arduino IDE. Connect the board with a USB cable to the computer. Compile the sketch/program and upload it to NodeMCU Board through Arduino IDE (don't forget to select Board & Port before uploading the sketch). Ensure that the Wi-Fi modem and the Internet connection in your PC/smartphone are working properly. Once sketch uploading is done, it will upload humidity and temperature values on the ThingSpeak platform and you will be able to see it graphically in the Private view window, as shown in the figure below. If you want to change the channel or field name, you can change it from Channel Settings (shown in the figure below).

Finally, your project looks like this image shown below in the Web Browser,

Click here to view my ThingSpeak Channel.

Click here to view my Project Website where I have integrated the whole project to access it with a single click.

Built with ❤ by Pranav Khatale

About

Monitor the Temperature and Humidity on any internet-connected device have Web Browser and also upload that data to ThingSpeak IoT Analytics Platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages