Temperature Sensing and Monitoring Using Arduino and Esp8266


7,051

17

7

This instructable is based on the concept of IoT. This project is going to give the real time temperature of any place. I used the Arduino Uno, lm35 temperature sensor and esp8266 wifi module. Then I am going to send that temperature to the Thingspeak.com.

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: Materials Needed

1. Arduino Uno board.

2. LM35 Temperature sensor.

3. Esp8266 wifi shield.

4.Breadboard.

5. Jumper Wires.

6. Internet (WiFi).

Step 2: Connect the Circuit

Do the Connections as given in the schematic diagram.

Step 3: Connect to the Wifi

After doing all the connection open the Arduino ide. Connect the Uno and select the board and port from a tools menu option. Open serial monitor. Select appropriate baud rate. And run the following commands.

1. AT

You will see OK response on a serial monitor that means Esp module working fine.

2. AT+CWMODE=3

You will see OK response on a serial monitor.

3. AT+CWLAP

List all the access points available.

4. AT+CWJAP="Access point name","Password"

//Enter access point name and password you got in a previous command.

Then, it will connect to that access point and respond OK.

I have attached esp8266 command set pdf.

Step 4: Uploading the Code

First, you need to create an account on https://thingspeak.com/ and create your channel. And copy the write api key.This key will be needed in the code.

Do the connection as given in schematic diagram.

Write the code in arduibo ide.I have attcahed code zip file.

Replace the api key in the code.

upload it and you will see the updates on thingspeak.com.

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    7 Discussions

    0
    None
    1sz12345

    Question 5 weeks ago on Step 3

    Hey this code is showing temparature and AT +CIPCLOSE ,but not plotting temparature in things speak server please help!

    0
    None
    ALIREZAYMGH

    5 months ago

    hi i tried this tutorial but when the code is working nothing is in the thingspeak website and also in serial monitor there is a AT+CIPCLOSE command every time the temp given anyone knows where the problem is ?

    0
    None
    RoyR67

    Question 10 months ago

    HI, if when i commend to the wifi that time, i use the bound rate is 115200 then any change that need to do for the final code ?

    0
    None
    VivekS205

    Question 1 year ago on Step 2

    I am unable to connect ESP8266 to hotspot internet

    COM port is showing no response to AT commands

    please provide basic procedure.

    0
    None
    herneise

    2 years ago

    hi. cool system! congrats!

    i am planning to use it for my little greenhouse :)

    one question:could you tell me please, how can i add this system "a soil humidity sensor" and a lcd screen 2x16 for real time checking on board? how can we add them to code? if you not to busy, could you write this part of code please? i am still not good at coding. thanks.