The rapidly advancing mobile communication technology and the decrease in costs make it possible to incorporate mobile technology into home automation systems. The aim of this project is to develop a system that will provide remote control of home appliances and also provide security against intrusion when the home host is not at home. We propose a mobile-based home automation system that consists of a mobile phone with windows or android platform, raspberry pi, topping pi for led instead of home appliance, fire sensor, and proximity sensor, relay. Led is controlled by the raspberry pi, which operates according to the user commands received from the mobile phone via Cortana (windows platform) and an application (android platform). In our proposed system the raspberry pi will receive command from cloud services like Microsoft Azure for Windows platform and MQTT for Android platform created by user from mobile app. We have also ensure the security aspects which includes intrusion detection using proximity sensor and fire alarm using fire sensor. All sensors are connected to raspberry pi. If any of the previously mention event occurs it will immediately inform user through text sms and also email notification.