 /**
 * 
  ****************************************************************************************************************************
- * Irrigation Controller 16 Zones With Options for Master Valve and Pump  v1
+ * Irrigation Controller 16 Zones With Options for Master Valve and Pump  v3_0
  * Simple, elegant irrigation controller that takes advantage of the cloud and SmartThings ecosystem
  * Arduino MEGA with SmartThings Shield  and 16 relay modules
  * Works by receiving irrigation run times from the Cloud and then builds a queue to execute

///               |           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, relay16 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;

