 #include <OneWire.h>
 #include <DallasTemperature.h>
 
-#define VERSION_STRING "V0.9"
+#define VERSION_STRING "V1.0"
 
 // Number of readings before a battery reading is taken
 #define BATTERY_READ_INTERVAL 10
+
+// Polling interval values
+#define FIFTEENMINS 0
+#define TENMINS 1
+#define FIVEMINS 2
+#define TWENTYSEC 3
 
 // Hardware pin defines
 // Enable SRF

    nodeId[1] = '0' + id2;
  else
    nodeId[1] = 'A' + (id2-10);

  // Reset analog inputs to set internal pullup off
  digitalWrite(A0, LOW);

    if (!enterCommandMode()) return 1;
  }
  // Use D9 & D10 links to determine polling interval
  // Select polling interval based on jumpers
  switch( pollingInterval ) {
    case TWENTYSEC:
      if (!sendCommand("ATSD4E20")) return 2;	// 20 seconds
      break;
 //   case ONEMIN:
 //     if (!sendCommand("ATSDEA60")) return 2;	// 1 Minute
 //     break;
    case FIVEMINS:
      if (!sendCommand("ATSD493E0")) return 2;	// 5 minutes
      break;
    case TENMINS:
      if (!sendCommand("ATSD927C0")) return 2;	// 10 minutes
      break;      
    default:
      if (!sendCommand("ATSDDBBA0")) return 2;	// 15 minutes
  }
  //if (!sendCommand("ATSDDBBA0")) return 2;	// 15 minutes
  //if (!sendCommand("ATSD927C0")) return 2;	// 10 minutes
  //if (!sendCommand("ATSD493E0")) return 2;	// 5 minutes
  //if (!sendCommand("ATSD4E20")) return 2;	// 20 seconds
  //if (!sendCommand("ATSD1388")) return 2;	// 5 seconds
  //if (!sendCommand("ATSD3E8")) return 2;	// 1 seconds
