     }
     else if (opMode == sensor) {
       //increment the return value by one, and send back
-      bluetooth.print(200 + checkReturned + 1);
+      bluetooth.print("|" + String(200 + checkReturned + 1) + "|");
       return 2;
     }
 

      if (checkValue + 1 == checkReturned) {
        signalSent = false;
        lostComms = false;
        Serial.println("Validated successfully");
        return 0;
      }
      else {
        //signalSent = false; //don't kill the signalSent, the real one may be on the way
        Serial.println ("No validation");

        if (lostComms) {
          return 43;

        EEPROM.write(eepromModeAddress, 1);
      }
      retVal = true;
      Serial.println("!Now an alarm. Reconfiguration successful.");
    }
    else if (input == '2' && counter == 1) {

      if (opMode == sensor) {
        Serial.println("!I'm a sensor.");
        retVal = true;
      }
      else if (opMode == alarm) {
        Serial.println ("!I'm an alarm.");
        retVal = true;
      }

