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.

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: adafruitio_22_environmental_monitor and config.h

Next, we're going to configure our Feather for use with Adafruit IO.

This guide was first published on Aug 16, 2018. It was last updated on Feb 26, 2024.

This page (Arduino Setup) was last updated on Aug 09, 2018.

Text editor powered by tinymce.