The locking machine 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 need to open up after which you can shut immediately after a number of seconds to stay away from tailgating. For this, https://www.amazon.it/gp/product/B0D52F3Q89