Home automation system based on the Raspberry Pi and Arduino