Arduino Setup

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.

We'll need a library to control the NeoPixels. In the search bar, enter Adafruit NeoPixel. Click Install.

We'll need a library to read the SGP30 sensor. In the search bar, enter Adafruit SGP30. Click Install.

Opening the Code

The code for this guide is stored within the latest Adafruit IO Arduino Library release (versions =>2.7.17). From the Arduino IDE, navigate to File->Examples->Adafruit IO Arduino -> io_home_series -> io_home_security.ino

The IDE should open the sketch (io_home_security.ino) and the configuration file (config.h):

With those files open, let's configure the sketch for use with your Adafruit IO account and network. 

This guide was first published on Sep 05, 2018. It was last updated on Sep 05, 2018. This page (Arduino Setup) was last updated on Nov 27, 2019.