 #include <SoftwareSerial.h>
 #include "RFID.h"
-
 
 SoftwareSerial RFID(RFID_RX, RFID_TX);
 SoftwareSerial WIFI(WIFI_RX, WIFI_TX);

	// ----------------------------------------------------------------------
	// Scan for RFID tags
	Serial.print(messages.scan);
	while (!responseFlag) {
		// no payload, so pass NULL
		sendCommand(CMD_GET_SNR, blockID, machineID, keyA, NULL);
		delay(waitforSerialResponse);
		responseFlag = getResponse(readData);
	}
	// -----------------------------------------------------------------------
	// RFID tag detected, read block that contains time data (for this machine)
	// LED will turn on
	Serial.print(messages.detected);
	digitalWrite(ledPin, HIGH);
	sendCommand(CMD_READ, blockID, machineID, keyA, NULL);
	delay(waitforReadResponse);
	responseFlag = getResponse(readData);
	// ------------------------------------------------------------------------
	// Analyze response packet and data
	if (!responseFlag) {
		soundFeedback(isReject);
		Serial.print(messages.readUnsuccessful);
	}

	if (elapsedTime > 0) {
		sendCommand(CMD_WRITE, blockID, machineID, keyA, elapsedTime + existingTime);
		delay(waitforWriteResponse);
		isValidResponse = getResponse(readData);
		if (!isValidResponse) {
			Serial.print(messages.errorRead);
		}
		else {
