This guide assumes you've completed the setup required to get your ESP8266 up and running with Arduino IDE and Adafruit IO.
- If you haven't yet set up your ESP8266 for use with Adafruit IO and the Arduino IDE, follow along with this guide. The setup only needs to be performed once.
To read sensor data from the SGP30, you will need to install the Adafruit_SGP30 library (code on our github repository). It is available from the Arduino library manager so we recommend using that.
- Not sure how to use the Library Manager? We have a great learn guide about installing libraries:
From the Arduino IDE, open the Library Manager
Type in Adafruit SGP30 to search for the library. Click Install.
Next, we're going to install the Adafruit BME280 Sensor Library . In the Library Manager, type in Adafruit BME280 to search for the library. Click Install.
The BME280 uses the Adafruit Unified Sensor library, so we also need to install that. In the Library Manager, type in Unified Sensor abstract to search for the library. Click Install.
Finally, we'll install the Adafruit VEML6070 library. In the Library Manager, type in Adafruit VEML6070 to search for the library. Then, click Install.
The code for this learn guide is contained within the Adafruit IO Arduino Library's examples.
To open it from the Arduino IDE, navigate to: File -> Examples -> Adafruit IO Arduino -> adafruitio_22_environmental_monitor
At this point, you should see two tabs open on your Arduino IDE:
Next, we're going to configure our Feather for use with Adafruit IO.