   {
     if(readCode[i] != code[i])
     {
-      Serial.println("ZLE");
       return false; 
-    }
-    else
-    {
-      Serial.println("OK");
     }
   }
 resetCode();

{
  if (radio.receiveDone())
  {
    Serial.print("message [");
    int premenna = 0;
    for (int i = 0; i < radio.DATALEN; i++)
    {
      readCode[i] = (char)radio.DATA[i];
      Serial.print((char)radio.DATA[i]);
    }
    Serial.print("], RSSI ");
    Serial.println(radio.RSSI);
    if (radio.ACKRequested())
    {
      radio.sendACK();
      Serial.println("Prijata sprava");
      if (verifyCode())grantAccess(); 
    }
  }

}
void grantAccess()
{    
    Serial.println("Grant Access!");
    digitalWrite(relay2, HIGH);
    delay(2000);
    digitalWrite(relay2, LOW);  
