Locking doors with RFID And stuff pls halp!!!111!!

I made an RFID Door Lock System and im stuck here and neep help,so i need code that:

Once i press a button it turn ON my relay,but only for a second,after that even if its held it turns the relay OFF

I tried various methods including the OneButton method.Please help im stuck and need help

How do i add code? And how do i edit my post?

Sorry for not reading on how to use this forum,and thanks! Here is my code. I put it in a text document,becuase it did not want to post i was exceeding the maximum allowed length of a post (9000 characters btw)

Untitled.zip (4.58 KB)

You converted your ino file to a freaking RTF file, and wrapped that in a stupid ZIP file, instead of just attaching the ino file. You really don't want help, do you?