Make connections in step with the circuit diagram attached beneath. There are lots of connections to be made so be affected person and do all the connections carefully. i'm able to recommend to make some home kind architecture using cardboard so that you can get the real experience of home Automation. Be cautious about PIR movement sensor as it is susceptible to touchy alternate. fix it tightly so that it does not give fake tremendous in any other case your door can be commencing suddenly.
RFID Connection is as follow:
MOSI ---> PIN 51
MISO ---> PIN 50
SCK ---> PIN 52
SS/SDA ---> PIN nine
RST ---> PIN eight
also join pin 20 of mega to pin 2 of arduino yun and pin 21 of arduino mega to pin three of arduino yun for I2C communique.