How to have ESP8266 communicate to ThingSpeak wirelessly?

Hi there!

I am working on a project that involves connecting a DS18B20 temperature sensor to an ESP8266 WiFi module to wirelessly measure the temperature of my breathing. I have the setup working so that when i upload the code using Arduino it sends it over to a channel in ThingSpeak so I can visualize the data. However, the ESP8266 is connected to my computer. My last step is to have it working without the WiFi module being connected to anything else -- I'm guessing I need to power it with a battery. After this, how will it communicate with ThingSpeak without being connected to my laptop (i.e. only connected to the sensor and a battery).

Thank y'all and stay safe!

Using wifi means the ESP8266 module connects to your router with connection your PC being completely irrelevant.

.

So how would I go about doing this?

celiafb:
So how would I go about doing this?

I suggest you use the forum Google search function in the upper right of this page to search for the key words of your project like ThingSpeak. You will probably find many similar previous project discussions and code to get you started.

I already have the code and everything works. Basically, I am powering my ESP8266 development board with a battery and I need to run the sketch, but I don't know which port to choose since only serial ports appear. How do I run the sketch without the ESP8266 being connected with a micro B USB?

celiafb:
I already have the code and everything works. Basically, I am powering my ESP8266 development board with a battery and I need to run the sketch, but I don't know which port to choose since only serial ports appear. How do I run the sketch without the ESP8266 being connected with a micro B USB?

The code that is uploaded into the ESP8266 development board runs when the board is powered.
So, if it is working correctly, then just provide the power the board needs.

.

Thank you -- this is the kind of information I need. So I do not need to have Arduino IDE pulled up for it?

Nope!

Connecting the board to a PC via USB serial is only required when either uploading a new sketch, or reviewing any serial output.