This is a IOT device that transmits temperature and humidity data to Adafruit's IOT data service, Adafruit IO.
- ESP8266 Board
- DHT11 (or DHT22 with
config.h
adjustments)
git clone git@github.com:onebytegone/iot_esp8266_dht11_adafruitio.git
cd iot_esp8266_dht11_adafruitio
Open iot_esp8266_dht11_adafruitio.ino
in the Ardunio IDE.
Most likely you will want to edit the following fields in config.h
.
IO_USERNAME
: This is your username on io.adafruit.comIO_KEY
: The AOI key for your account (See this for more info)IO_HUMIDITY_FEED
: The key for the humidity sensor on io.adafruit.comIO_TEMPERATURE_FEED
: The key for the temperature sensor on io.adafruit.comNETWORK_SSID
: The name for your WiFi networkNETWORK_PSK
: The password for your WiFi network
The board definition for the ESP8266 is available via the Boards Manager in the Arduino IDE (Tools > Board > "Boards Manager...")
The following libraries need to be installed to build the source code. These are available via the Library Manager in the Arduino IDE (Sketch > Include Library > "Manage Libraries...")
These settings will vary based on your board. The photo below contains the configuration I used, mainly for posterity sake.
This is released under the MIT license. See LICENSE.md for more information.