now that you have your hardware, and a UserID + API key from the Web server section, now it is time to upload the code to the Arduino.

to do this you will have to download and install the Arduino software. I would recommend using a slightly older 1.5.0 or 1.0.x installer, which adafruit recommends for use with the WiFi library. They have downloads available for windows, Macintosh, and Linux.

Also make sure you have downloaded the latest IoT humidor source.

There are only a couple small changes that you have to make to the source code before uploading.

first you must install the Arduino libraries from the folder /Arduino/libraries/ to your local /libraries/ folder in the root of your Arduino installation directory. Literally this is just a copy and paste operation.

Next in the /Arduino/humidor/ folder, rename the file public.h to private.h the public file is a template that will hold your private settings for connecting to your home Wi-Fi, and your user ID and API key.This document will help you set up your Wi-Fi password settings.

you will also have to set your client_id and APIKEY. Examples are provided in the document.

The temp_shift and humi_shift settings can be used to adjust the readings in case your sensor is off a bit when tested against a known good hygrometer. We will discuss USE_EXT_WATCHDOG setting in the advanced document.

As a final sanity check, look at the top of humidor.ino and make sure that:

uint8_t debug_local = 0;

If you plan on using your own web server on the internet you will also have to change the following line:

#define DOMAIN "sandsprite.com"

if your internet server does not have a domain name, just set DOMAIN to the ip if you set debug_local = 1 the test server ip is set in the setup() function. In this mode it will automatically be put into speedMode with an accelerated count down.
  if(debug_local){
		ip = cc3000.IP2U32(192,168,0,10);   //test server
		speedMode = 1;
  }


Once these steps are complete you can double click on the humidor.ino file plug in your arduino to your PC with the USB cable, and upload the code.

Congrats setup is complete and you should see information start to show up on the LCD screen!