 		MF_SNR();
 		delay(200);
 		// getResponse determines if the response packet is OK
-		responseFlag = getResponse();
+		responseFlag = getResponse(readData);
 	}
 
 	// RFID tag detected, read block that contains time data
 	digitalWrite(ledPin, HIGH);
 	MF_READ(0x01, 0x05);
 	delay(200);
-	responseFlag = getResponse();
+	responseFlag = getResponse(readData);
+	// Analyze data
 	if(responseFlag == false) Serial.println("Unexpected result");
 
 	// Get ready to accumulate time

void loop() {
	bool responseFlag = false;
	unsigned long elapsedTime = 0;
	unsigned char readData[bufferSize/2];
	digitalWrite(ledPin, LOW);

	// Scan for RFID tags

	// Write time data to card
	MF_WRITE(0x01, 0x05, elapsedTime);
	delay(200);
	responseFlag = getResponse(readData);
	if(responseFlag == false) Serial.println("Unexpected result");

}

bool getResponse(unsigned char response[]) {
	int i = 0;
	// buffer for response packet
	unsigned char response[bufferSize];
