   if (!signalSent && opMode == alarm && millis() - timeSent >= heartbeatTimeout) {
     checkValue = random(0, 53);
     timeSent = millis();
-    Serial.print(200 + checkValue);
+    Serial.print("|" + String(200 + checkValue) + "|");
     signalSent = true;
     if (lostComms) {
       return 42;

#include <EEPROM.h>

//General-use global variables
enum mode {sensor, alarm};
unsigned long time = millis();
const unsigned int eepromModeAddress = 0;

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