     Serial.print(devStatus);
     Serial.println(F(")"));
   }
-
 }
 
 bool checkFifoOnMpu() {

uint16_t fifoCount;     // count of all bytes currently in FIFO
uint8_t fifoBuffer[64];

char rfidTag[TAG_LENGTH + 1];
char lockTag[TAG_LENGTH + 1];
bool locked = false;
unsigned long lastRead = 0;

char buffer[TAG_LENGTH];
int count = 0;

// Software serial for XBee module
SoftwareSerial xbeeSerial(2, 3); // RX, TX

  hexstr = "0x";
  hexstr += buffer[TAG_LENGTH - 2];
  hexstr += buffer[TAG_LENGTH - 1];
  tmp = strtoul(hexstr.c_str(), 0, 16);
  return checkSum == tmp;
}

