 
 unsigned char readData[bufferSize];
 
+volatile bool isValidResponse = false;
 volatile char characterRead[bufferSize];
 volatile int id = 0;
 

void loop() {
	// Scan for RFID tags
	int scannedID = 0;
	bool isValidResponse = false;
	unsigned long existingTime = 0;

	while (!isValidResponse) {
		sendCommand(CMD_GET_SNR, blockID, machineID);
		delay(waitforSerialResponse);

		Serial.write(END_CHAR);

	}
}

void getStringFromMem(int index) {
