By using several sensors ( like PIR- Movement detection sensor,LDR -Light detection sensor,MQ2-Gas leakage sensor,Temperature-to check the temperature of selected place ) we are making a smart home.
If there is no light in a room and some movement detection is found (taking an example when a thief comes at home at night) certain alert system will work using raspberry pi2.
If there is Gas leakage happening a alert goes to the user . When there is no one in room and lights are on then user gets an alert on energy wastage.
For giving alert information we use Microsoft azure cloud service and a specified smartphone application.