 {
 
   Serial.begin(9600);
+  Serial.print("ArduinoMaster");
   radio.initialize(FREQUENCY, MASTERADDRESS, NETWORKADDRESS);
   radio.encrypt(ENCRYPTKEY);
   pinMode(relay1, OUTPUT);

#include <RFM69.h>

#define MASTERADDRESS 3
#define CODELOCKADDRESS 2
#define NETWORKADDRESS 0
#define FREQUENCY     RF69_868MHZ
#define ENCRYPTKEY    "TOPSECRETPASSWRD" 
#define USEACK        true // Request ACKs or not
RFM69 radio;


/******P I N S********/
const byte relay1 = 11;
const byte relay2 = 12;

/*******C O D E******/ 
const byte maxCodeLength = 8;


boolean verifyCode()
{
  for(int i=0;i<maxCodeLength;i++)
  {
    if(readCode[i] != code[i])
    {
      Serial.println("ZLE");
      return false; 
    }
    else
    {
      Serial.println("OK");
    }
  }
resetCode();
return true;
}
void grantAccess()
{    
    digitalWrite(relay2, HIGH);
    delay(2000);
    digitalWrite(relay2, LOW);  
}
