First working version in C (and an failed test in Python)
Added an authorized cards list which can be updated by SIGHUP
Exit button support without long press bug
Now you can also open the door by sending SIGUSR1 to the process.