Nodemcu Is Sending Temperature and Humidity Data to Thingspeak

Introduction: Nodemcu Is Sending Temperature and Humidity Data to Thingspeak

About: We are a team of passionate engineers who works on embedded system and IoT. Here through this page you will come to know about embedded system from scratch to the latest technology based controller. We will ...

Here in this tutorial we have interfaced nodemcu with dht11 sensor and sending temperature and humidity data to thingspeak server. Here we have also plot the graph of temperature and humidity to thingspeak server.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Software Used:

1. Arduino IDE: As for nodemcu we are using arduino IDE only.You can download the latest Arduino IDE from this link:

https://www.arduino.cc/en/Main/Software Now how to configure nodemcu to arduino IDE, we will tell you that thing in below steps.

Step 2: Component Used:

1) Node MCU V3 : Node MCU is an open source IOT platform. It includes firmware which runs on the ESP8266 Wi- Fi SoC from hardware which is based on the ESP-12 module. The term "Node MCU" by default refers to the firmware rather than the dev kits.

2) DHT11 sensor: This DHT11 Temperature and Humidity Sensor features a calibrated digital signal output with the temperature and humidity sensor capability. It is integrated with a high-performance 8-bit microcontroller. Its technology ensures the high reliability and excellent long-term stability. This sensor includes a resistive element and a sensor for wet NTC temperature measuring devices. It has excellent quality, fast response, anti-interference ability and high performance.

Step 3: How to Configure Nodemcu in Arduino IDE:

Below are the steps to configure nodemcu in arduino IDE

Above I1,I2 and I3 images are there for reference which we will use for our references to make you understand

Step1: First you need to open the Arduino IDE.

Step2: Now click on preferences tab like I1 image. Now you need to copy one URL in the additional board manager. Here is the URL- http://arduino.esp8266.com/stable/package_esp8266... then click ok

Step 3: Now go to the Tools then select Board Manager. you will get one window like I2.

Just Scroll down on that window and search for esp8266 by ESP8266 Community or you can directly search esp8266 by typing on the search option, now click on install button.

Step4: Restart your Arduino IDE

Step5: Now go to Tools then Select your nodemcu device as we have shown in I3 image

Step 4: Thingspeak Working:

So till now you got the software and Components used in this project.

So Now you have to understand thingspeak Server.

So what is thingspeak: ThingSpeak is an open source Internet of Things (IoT) application and API to store and retrieve data from things using the HTTP protocol over the Internet or via a Local Area Network.

So for getting the graph and sensor data in thingspeak first you have to create an account in thingspeak.

After successfully creating the account now you have to sign in to the account.

Now you need to create a channel so for that click on New Channels shown in above figure.

Now give it a suitable name as per your Application as in the above image you can see we have given name DHT11 sensor data and fill some of the things like description and field1 and field2.

We can create up to 8 fields for a single channel. Here we need only 2 channels as we're getting temperature and humidity from dht11 sensor.

Now after successfully creating the channel you need to go to the API Keys tab and get the Write API Key of that channel this Write API Key you will use in your nodemcu code written in Arduino IDE.

Step 5: Circuit Diagram:

Step 6: Code:

You can get the source code from our Github Link

Step 7: Video:

The whole Project Description is given in above video

If you have any doubt regarding this project feel free to comment us below.

And if you want to learn more about embedded system you can visit our youtube channel

Please visit and like our Facebook Page for frequent updates.

Thanks & Regards,

Embedotronics Technologies

Be the First to Share

    Recommendations

    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    Discussions