An alarm and door lock system based on the Raspberry Pi board