   //   byte[ 13] - Checksum byte[ 1] ( from the reader) ( inputRFID[ 12])
   //   byte[ 14] - \r ( 0x0D)
   //   byte[ 15] - \n ( 0x0A)
-  mySerial.write( myID);
-  mySerial.write( inputRFID[ 1]);
-  mySerial.write( inputRFID[ 2]);
-  mySerial.write( inputRFID[ 3]);
-  mySerial.write( inputRFID[ 4]);
-  mySerial.write( inputRFID[ 5]);
-  mySerial.write( inputRFID[ 6]);
-  mySerial.write( inputRFID[ 7]);
-  mySerial.write( inputRFID[ 8]);
-  mySerial.write( inputRFID[ 9]);
-  mySerial.write( inputRFID[ 10]);
-  mySerial.write( inputRFID[ 11]);
-  mySerial.write( inputRFID[ 12]);
-  mySerial.write( 0x0D);
-  mySerial.write( 0x0A);
+  serGateway.write( myID);
+  serGateway.write( inputRFID[ 1]);
+  serGateway.write( inputRFID[ 2]);
+  serGateway.write( inputRFID[ 3]);
+  serGateway.write( inputRFID[ 4]);
+  serGateway.write( inputRFID[ 5]);
+  serGateway.write( inputRFID[ 6]);
+  serGateway.write( inputRFID[ 7]);
+  serGateway.write( inputRFID[ 8]);
+  serGateway.write( inputRFID[ 9]);
+  serGateway.write( inputRFID[ 10]);
+  serGateway.write( inputRFID[ 11]);
+  serGateway.write( inputRFID[ 12]);
+  serGateway.write( 0x0D);
+  serGateway.write( 0x0A);
   return;
 }
 

  }
  
  // Check to see if the RFID input buffer is full or the last char was a newline.
  if( inputRFID[ currentCharRFID - 1] == 0x0A) {
    // Turn on the yellow status LED to show that a request is being processed
    digitalWrite( statusLED, HIGH);
    // Check the buffer to make sure it's valid
    if( checkInputRFIDBuffer()) {
      // Send the request for an RFID swipe
      sendRFIDswipeRequest();
    }
    // Clear the buffer
    inputRFIDClearBuffer();

int redRFIDStatusLED = 5;
// The output relay is connected to pin 7
int relay = 7;
// The software serial for reading the RFID module to pins 8 (TX) & 9 (RX).
int rfidRX = 8;
int rfidTX = 9;
SoftwareSerial serRFID( rfidRX, rfidTX);
// The software serial for verification is connected to pins 10 (TX) & 11 (RX).
int gatewayRX = 10;
int gatewayTX = 11;
SoftwareSerial serGateway( gatewayRX, gatewayTX);
// Input buffer from RFID reader ( currently 16 bytes)
int currentCharRFID = 0;
char inputRFID[ 16];
