Raspberry Pi based Home Automation and Monitoring