 #define PIN_THING_RX    3
 #define PIN_THING_TX    2
 
-SmartThingsCallout_t messageCallout;    // call out function forward decalaration
+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)

/**
* 
 ****************************************************************************************************************************
 * Irrigation Controller v2.54
 * Simple, elegant irrigation controller that takes advantage of the cloud and SmartThings ecosystem
 * Arduino UNO with SmartThings Shield  and an 8 Relay Module
 * Works by receiving irrigation run times from the Cloud and then builds a queue to execute

  digitalWrite(relay[trafficCop], relayOff);
  smartthing.shieldSetLED(0, 0, 1);
  queue[trafficCop]=0; //remove relay from from queue
  if (maxvalue() ==0) {
    if (isConfigPump || isPin4Pump) {
      int8_t pumpOffEvent = t.after(pumpOffDelay*60L*1000L, pumpOff);  //turns off pump after delay
    }  
  }
  trafficCop=0; //ready to check queue or watch for new commmonds
  scheduleUpdate();
  schedulePumpUpdate();
