Introduction: Temperature Sensing and Monitoring Using Arduino and Esp8266
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.
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.
Attachments
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.
7 Comments
Question 3 years ago on Step 3
Hey this code is showing temparature and AT +CIPCLOSE ,but not plotting temparature in things speak server please help!
4 years 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 ?
Question 4 years 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 ?
Question 5 years 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.
6 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.
6 years ago
Cool arduino project.
Reply 6 years ago
Thank you @DIY Hacks and How Tos.