// --------------------------------------------------------
// Masterpasswort .  Anmelden mit RFID-ROM Chip TOWITEC + Arduino Micro.
//--------start USB-Keyboard 
#include "Keyboard.h"
int i;
int z = 0;
int key[5];
String keyvalue;
void setup()
{
Serial1.begin(9600); // start serial to RFID reader
Serial.begin(9600); // start serial to PC
Keyboard.begin();
}
void loop()
{
if (Serial1.available() > 0)
 {
i = Serial1.read();
z ++;
// -------------6 = 5+1(bytes)
if (z <6)
  {
Serial.print(i, DEC);
Serial.print(" ");
key[z] =i;
// -----------------5 bytes from RFID
if (z == 5)
   {
 Serial.println();
 Serial1.end();

 keyvalue = (key[1] );
 keyvalue = (keyvalue + key[2]);
 keyvalue = (keyvalue + key[3]);
 keyvalue = (keyvalue + key[4]);
 keyvalue = (keyvalue + key[5]);
 if (keyvalue == "5 bytes from RFID")
   {

 Keyboard.print("topsecretPW\n");
   }
// -----------------5 Sekundensperre
 delay(5000);
--------------------Thats not nice but it works.
 Serial1.begin(9600);
 
z=0;
   }
  }
 }
}
// ---------------------------------