     delay(5000);	// try again in 5 seconds
   }
 
+
   // Repeat "STARTED" message 5 times to alert
   for(int i=0;i<5;i++) {
     LLAP.sendMessage("STARTED");
     delay(1000);
+    // send version 
+//    char* temp =  strcat("VER",VERSION_STRING);
+//    LLAP.sendMessage(temp);
+//    delay(1000);
   }
 
 }

  }
  return 0;
}


void setup() {
  // initialise serial:
  Serial.begin(115200);
  // Get device ID
  readJumpers();
  // Initialise the LLAPSerial library
  LLAP.init( nodeId );
  analogReference(DEFAULT);

  // Set unused digital pins to input and turn on pull-up resistor
  for(int i = 0; i< 5; i++ ) {
    pinMode(inPin[i], INPUT);
    digitalWrite(inPin[i], HIGH);

boolean tempSensorFound = false;
float latestTemperature = 0.0;
uint16_t lastUncompDistance = 0;
int batteryCountDown = BATTERY_READ_INTERVAL;
int pollingInterval = FIFTEENMINS;

// Define pins that are not used and are to be made inputs
uint8_t inPin[] = { 9, 10, 11, 12, 13 };

uint8_t enterCommandMode();

// Node ID, default 00, set by input pins
// Stricly speaking this should only be digits, according to the Ciseco LLAP spec.
char nodeId[2] = { '0', '0' };
