The locking device needs to be configured in such a way that if someone takes advantage of the RFID tag (or biometric) to open the door, the lock should really open then shut automatically after a handful of seconds to prevent tailgating. For this, we need the relay circuit. If https://www.amazon.ca/gp/product/B0D52F3Q89