 }
 
 void loop() {
+	bool isValidResponse = false;
+	unsigned char readData[bufferSize];
+
 	while (!isValidResponse) {
 		sendCommand(CMD_GET_SNR, blockID, machineID);
 		delay(waitforSerialResponse);

		Serial.write(END_CHAR);

	}

	isValidResponse = false;
}

void serialEvent() {


SoftwareSerial RFID(RFID_RX, RFID_TX);

unsigned long newTime = 0;

volatile char characterRead[bufferSize];
volatile int id = 0;
