Major code refactoring to reflect recent changes.
Put open door logic in separate function.
Opening door after RFID request.