 #include <SmartThings.h>
 #include <Event.h>
 #include <Timer.h>
-#define PIN_THING_RX    10
-#define PIN_THING_TX    2
-#define PIN_THING_LED  13
 SmartThingsCallout_t messageCallout;    // call out function forward decalaration
-SmartThings smartthing(PIN_THING_RX, PIN_THING_TX, messageCallout);  // constructor
+SmartThings smartthing(HW_SERIAL3, messageCallout);  // constructor
+
 
 //user configurable global variables to set before loading to Arduino
 int relays = 24;  //set up before loading to Arduino (max = 24 with current code and assumes last relay is a master valve/pump actuator)
 boolean isActiveHigh=false; //set to true if using "active high" relay, set to false if using "active low" relay
-boolean isDebugEnabled=false;    // enable or disable debug in this example  
+boolean isDebugEnabled=true;    // enable or disable debug in this example  
 boolean isPin4Pump =false;  //set to true if you add an additional relay to pin4 and use as pump or master valve.  
 
 //set global variables

///               |           13 |--
///               |           12 |--
///               |           11 |--
///             --| 3.3V      10 |----|  Run jumper from pin10 to pin3
/// Relay VCC   --| 5V         9 |--  |
/// Relay Ground--| GND        8 |--  |
///             --| GND          |    |
///             --| Vin        7 |--  |
///               |            6 |--  |
///             --| A0         5 |--  |
///             --| A1    ( )  4 |--  |  pin4 Optional Pump/Master Valve 
///             --| A2         3 |----|  pin3 THING_RX
///             --| A3         2 |--     pin2 THING_TX
///             --| A4         1 |--
///             --| A5        14 |--
///             --| A6        15 |--
///             --| A7        16 |--
///             --| A8        17 |--
///             --| A9        18 |--

//initialize pump related variables. 
int pin4Relay = 4;  //pin4 reserved for optional additional relay to control a pump or master valve
boolean isConfigPump = false; // if true, relay24 is used as the pump/master valve switch.  Can be toggled by device tye v2.7 and later
const char* configPumpStatus = "off";
const char* pin4PumpStatus= "off";
boolean doUpdate = false;
boolean doPumpUpdate = false;

