Backend for raspberry pi that controls the door and checks the keys