  ****************************************************************************************************************************
  * Libraries:
  * Timer library was created by Simon Monk as modified by JChristensen  https://github.com/JChristensen/Timer
- *   KNOWN LIBRARY BUG (timer.cpp) - identified by mattnichols 5/20/14 - has no known affect on the code below
  * SmartThings library available from https://www.dropbox.com/s/8hon320qmuio8fz/Shield%20Library.zip
  * SoftwareSerial library was default library provided with Arduino IDE
  *

  digitalWrite(relay[trafficCop], relayOff);
  smartthing.shieldSetLED(0, 0, 1);
  queue[trafficCop]=0; //remove relay from from queue
  if (isConfigPump== true) {
    if (maxvalue() ==0) {
      digitalWrite(relay[8], relayOff);
      configPumpStatus = "off";
    }
  }
  if (isPin4Pump) {
    if (maxvalue() ==0) {
      digitalWrite(pin4Relay, relayOff);
      pin4PumpStatus = "off";
    }
  }  
  trafficCop=0; //ready to check queue or watch for new commmonds
  scheduleUpdate();
  schedulePumpUpdate();

#define PIN_THING_RX    3
#define PIN_THING_TX    2

SmartThingsCallout_t messageCallout;    // call out function forward decalaration 
SmartThings smartthing(PIN_THING_RX, PIN_THING_TX, messageCallout);  // constructor


//user configurable global variables to set before loading to Arduino
int relays = 8;  //set up before loading to Arduino (max = 8 with current code)
