Making the Raspberry Pi into an access control unit