If you saw what I've posted before, now you know how to use DHT 11 and ESP-01 modules.
Now, using both modules, I will send the temperature and humidity data measured by DHT 11 to the server using ESP-01. To send data to the server, you should use a site called Thingspeak. First, go to the site called "Thingspeak" and sign up for membership.
If you have completed membership, you will see the following screen. Then create a new channel.
Once you have created a new channel, set the name, purpose, etc. of this channel. In this project, the name of the channel is called 'temperature and humidity measurement' because it is aimed to measure temperature and humidity. In addition, two fields have been marked separately for displaying temperature and humidity values.
If you have completed the channel setting, you can view the newly added channel on my channel.
Click on the 'Temperature and Humidity' channel to view the two objects divided into ‘Temperature’ and ‘humidity’. Here, press API Keys to confirm my Write API Key.
Copy my Write API Key and add line 12 of the code:
'String apiKey = "Thingspeak channel write API Key";
Paste in the part. (If you do not have the <DHT.h> file, download it here: http://deneb21.tistory.com/attachment/cfile26.uf@21324339574F9E3A184C6F.zip)
When you enter the code in the Arduino IDE and upload it, you will notice that the data was successfully transferred as shown in the screen below.
I have seen how to send data to Thingspeak in this way. Next, we will make an air meter in earnest.
Until then, this is ParkMoonsu! See you next time!
Note: sites and source of the file: http://deneb21.tistory.com/