           //Reset the number of bonds and count from the EEPROM header
           bond_number = 0;
           eeprom_status = EEPROM.read(0);
-          if (eeprom_status != 0x00)
+          if (eeprom_status != 0xFF)
           {
             bond_number++;
             //Update the write offset to the correct number
             eeprom_write_offset = EEPROM.read(bond_number * BYTES_PER_BOND_IN_HEADER + 1);
-            if (0x00 != EEPROM.read(2))
+            if (EEPROM.read(2) != 0xFF)
             {
               bond_number++;
               //This is needed only if we wanted to add a 3rd bond

      {
        //We failed the read dymanic data
        //Set the flag in the EEPROM that the contents of the EEPROM is invalid
        EEPROM.write(new_bond_index * BYTES_PER_BOND_IN_HEADER, 0x00);

        status = false;
        break;

    //Clear the pairing
    Serial.println(F("Pairing cleared. Remove the wire on Pin 6 and reset the board for normal operation."));
    //Address. Value
    EEPROM.write(0, 0xFF);
    EEPROM.write(1, 0xFF);
    EEPROM.write(2, 0xFF);
    EEPROM.write(3, 0xFF);
    while(1) {};
  }
}
