Easily Build An Indoor Environment Sensor Device with Zio Modules


Want to check your environmental stats anytime, anywhere with your phone? No time (or space!) to mess with breadboards, jumper cables or soldering? Assuming you want to DIY it (you are on Smart Prototyping after all!), we have the perfect, simple, IoT kit for you: Qwiic Environment Sensor Kit and a tutorial on how to use it.


Setup the hardware in a minute, create your own thingspeak.com account, change the wifi info in Arduino code and you’ll be up and running faster than you can say ThinkSpeak 20 times. Really, try to say it more than 5 times in a row - impossible!  -


Step 1: Register an account on thingspeak.com.

Note: Free Account is enough for this project.


Step 2: Set up the channel and fields like we’ve done in the following image. The fields are where we’ll be sending the data.


Find your API key from the API Keys tab.we will use the write API key.



Step 3: Connect your sensors
Super quick and easy with Qwiic, just daisy chain them together - there’s no particular order you must connect them in.


Step 4: Install the libraries and ESP32 Arduino core
To support our Psyfi32 board, you’ll need to install the ESP32 core by inputting this link into Arduino IDE -> File -> Preferences -> Additional Boards manager URLs as pictured below. https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json



After restarting Arduino IDE, from the board manager, choose ESP32 Arduino, then choose ESP32 Dev Module.


Then, download all libraries the demo code requires:

Download our thingspeak demo code from our github channel,

Open the demo code with Arduino IDE and change your WiFi SSID and password.

const char* ssid     = "Your SSID"; // Your SSID
const char* password = "your wifi password"; // your own WiFi password

const char* host = "api.thingspeak.com";
String api_key = "your_api_key"; // copy and paste the API Write Key provided by ThingSpeak Environment Sensor Data4

Upload the code to Psyfi32, then you are good to go!

After the sensors start collecting data, you’ll find your sensor charts populate in your thingspeak link.

If you set your channel as a public channel, you can share this link to others, like your family or friends, or you can check the data from any device that has a browser.




Leave a Comment