Context Aware IoT Based Smart Monitoring and Safety Application
The concept, Internet of Things includes an immense number of smart objects that are continuously generating massive volume of data and simultaneously connecting and sharing information with each other. A smart object can examine the environment and extract useful information and then disseminate it
2025-06-28 16:25:58 - Adil Khan
Context Aware IoT Based Smart Monitoring and Safety Application
Project Area of Specialization Internet of ThingsProject SummaryThe concept, Internet of Things includes an immense number of smart objects that are continuously generating massive volume of data and simultaneously connecting and sharing information with each other. A smart object can examine the environment and extract useful information and then disseminate it to other smart objects, thus making an intelligent environment. Smart environment is a more mature concept in the field of ubiquitous computing, which promotes an idea of “A world that is invisibly interlinked with computer systems, sensors, displays and actuators which provides sustainability, energy efficiency and facilitate humans in their day-to-day activities.
Surveillance and Safety becomes one of the mandatory consideration in keeping any environment from undesirable events or accidents and Internet of things (IoT) is a network of interconnected electronic devices that capable of sending data through sensors without interference or with minimal human intervention. It forms an intelligent system which can send warnings when an unexpected event occurs or about to occur and also takes action according to the scenario. In Smart Security and Surveillance system, people are inclined to a lifestyle where they can manage and control appliances - things - from anywhere and not just manage and control but also monitor and make actions to keep any environment safe. Also, video footage will be recorded and used as an evidence to find out what’s the cause of rise in values and any accident.
Based on the aforementioned information the project is projecting an approach towards smart environment by collecting data from different sensors. Moreover, data can be classified with the help of Support Vector Machine (SVM), so that registered user receives the required information or may use it to derive useful information to make reports and predict future threats.
Project Objectives- An implementation of Smart Environment with respect to Internet of Things.
- To design a smart environment using IoT system that has the ability to interconnect and communicate embedded (electronic) devices for the purpose of making human life smarter, safer, and healthier.
- An IoT based system for creating a smart environment by collecting data from various sensors and distributing it to software application to analyze the environment, monitor it and keep it safe.
I will use SDLC (System Development Life Cycle) methodology for the development of this project. Phases of SDLC are as follow:
Requirement Gathering
All the tools, devices and software used during our project will be taken into consideration in this phase. We had studied similar project and are gathering functional and non-functional requirements of our project.
Design
In this phase, overall layout of web/android application and hardware programming is designed. Necessary features that needs to be added in our project was taken into consideration and con?guration of raspberry pi with components is studied.
Implementation
The actual coding of application is written, and the con?guration and ?ne tuning for the hardware to meet the functional and non-functional requirement is also performed.
Testing
Developed application will be tested in this phase; any bugs will be identi?ed and removed. We may consult any hardware expert to evaluate our hardware design.
Benefits of the Project- Helps handicapped, elderly ang generally all people to monitor an environment remotely.
- Improves standard of living by eliminating the risk of physical interaction with electric switches.
- Time saving as everything can be monitored by device without physical interaction.
- Any device capable of WIFI connectivity can control appliances thus making it flexible in control and to be monitored.
- Risk of Fire will be eliminated.
- Gas Leakage and Rise in Voltage or Temperature will be monitored.
- If value of any sensor rises a pre-defined threshold, an alarm will be generated alongside an alert to the concerned authorities.
- Video Footage will be recorded and used as an evidence to find out what’s the cause of rise in values and an accident.
- Sensors data can be classified with the help of Support Vector Machine (SVM), so that registered user receives the required information or may use it to derive useful information to make reports and predict future threats.
Overview
- Raspberry Pi Configuration with Sensors
- Real Time Data from Sensor to Raspberry Pi
- Data uploading to database
- Native Mobile Application to show real time data from sensors
- Advance Web portal to monitor the system
- Trigger an alert message from system when required
System Architecture
Our entire system is consist of server and client part. The server is the web interface consisting of buttons and UI (User Interface) consists of PHP files and Html files that will allow you to Monitor a device. The client side consists of a Raspberry Pi with sensors connected to its GPIO pins. The pi runs a python program which configures GPIO pins of raspberry pi with the circuit containing all sensors. The python program also checks if the value obtained is High / Low based on which it raises and warning or start recording the video respectively via its GPIO pin and Pi Camera.
Simulated Environment
As I will be only developing a prototype for this project. Series of sensors are deployed on a board. These sensors will convey the status of sensors i.e. (on off state) and will act in the system as input by giving the values from environment. Sensors will be controlled by raspberry pi and It will also read sensors data which it will send periodically to raspberry pi upon request and then to database.
Software Applications
Both Mobile/Web application will act as an interaction platform between user and system. User will be able to check the status of sensors, Real time Values, Past Values and all other useful information.
Activity Diagram
It shows the work flows of stepwise activities and actions with support of choice.

Required skills/ Technologies
Software
1. Tools
Sublime Text, React Native, Putty, LAMP.
2. Software Languages
Python, PHP, JavaScript, JQuery Libraries, JSON, HTML, CSS
3. Database
MySQL
4. Platform
Linux for Raspberry Pi, React Native for Mobile App, PHP for Web Portal
Hardware
1. Sensors
Flame Sensor, MQ2 Gas Sensor, Voltage Sensor Module, DHT11 Temperature/Humidity Sensor.
2 .Microprocessor
Raspberry Pi
3. Camera
Pi Camera
| Item Name | Type | No. of Units | Per Unit Cost (in Rs) | Total (in Rs) |
|---|---|---|---|---|
| Total in (Rs) | 51900 | |||
| Raspberry Pi 4 | Equipment | 1 | 32500 | 32500 |
| Motion Sensor | Equipment | 1 | 500 | 500 |
| Gas Leakage Sensor | Equipment | 1 | 500 | 500 |
| Voltage Sensor | Equipment | 1 | 350 | 350 |
| Temperature/Humidity Sensor | Equipment | 1 | 450 | 450 |
| Pi Camera | Equipment | 1 | 9000 | 9000 |
| Jumper Wires | Equipment | 1 | 1000 | 1000 |
| Bread Board | Equipment | 2 | 300 | 600 |
| Stationary (Environment Prototype) | Miscellaneous | 1 | 4000 | 4000 |
| Printing (Monthly Reports and Thesis) | Miscellaneous | 1 | 3000 | 3000 |