Home alarm and automation system based on Raspberry Pi and iPhone 4s