Professional Documents
Culture Documents
WhatsApp Based Alert System PROJECT
WhatsApp Based Alert System PROJECT
1.0 INTRODUCTION
In today's fast paced world, it is essential to monitor environmental conditions and security
within our living spaces. This project addresses this need by creating an innovative WhatsApp
based alert system that can monitor room temperature, humidity levels, and motion status. It
ensures users are well informed about their surroundings, offering convenience, peace of mind,
In today's interconnected world, the fusion of technology and convenience has revolutionized the
way we interact with our living spaces. From smart thermostats to security cameras, our homes
Imagine having the ability to effortlessly oversee and manage the conditions within your home or
office space, all while staying connected through a ubiquitous messaging platform like
WhatsApp. This is precisely what the WhatsApp-Based Room Monitoring System aims to
achieve. It addresses the pressing need for real-time awareness and control over essential
The primary focus of the study is on monitoring room temperature, humidity, and motion status.
This includes selecting appropriate sensors, data collection methods, and analysis techniques to
ensure accurate and reliable measurements. design and implementation of the alerting
and humidity sensors, motion sensors, microcontrollers (e.g., Raspberry Pi), and power supply
solutions.
The development of software modules is essential for data acquisition, processing, and
WhatsApp integration. The system relies on internet connectivity for WhatsApp message
The integration with WhatsApp, whether through the WhatsApp API or a WhatsApp-enabled
bot, is a key aspect of the study. Rigorous testing is essential to validate the system's accuracy,
2. Energy Wastage: The ineffective control of heating, cooling, and humidity management
systems can result in excessive energy consumption and elevated utility costs.
3. Limited Access to Monitoring Data: Existing monitoring solutions often lack user-friendly
4 . Absence of Remote Accessibility: Current systems may not offer remote access or alerts,
limiting users' capacity to respond to changing environmental conditions when they are away
The primary goal of this system is to empower individuals with the capability to monitor and
react to changes in their living or working environment promptly. Its core objectives include:
1. Real-Time Monitoring: Continuously tracking room temperature and humidity levels to ensure
3. Immediate Alerts: Providing real-time alerts via WhatsApp when predefined thresholds are
breached.
4. User-Friendly Interface: Offering an intuitive user interface for configuration and data
visualization.
messaging platform.
- Hardware Sensors: These include temperature and humidity sensors (such as the DHT11) for
environmental data and passive infrared (PIR) motion sensors for motion detection. A
microcontroller, such as the Raspberry Pi, interfaces with these sensors to collect and process
data.
- Software Modules: The system is equipped with various software modules responsible for data
acquisition, data processing, WhatsApp integration, user interface, and alert management. These
modules work harmoniously to provide users with real-time information and alerts.
- Internet Connectivity: The system connects to the internet via Wi-Fi or Ethernet, ensuring
- WhatsApp Messaging Platform: The system leverages the WhatsApp API or a WhatsApp-
enabled bot to send alerts and notifications to users, ensuring timely responses.
It's important to recognize these limitations to set realistic expectations and plan for potential
challenges.
1. Internet Dependency: The system relies on an internet connection for WhatsApp message
delivery. If the internet connection is lost or unreliable, the system's ability to send alerts may be
compromised.
2. WhatsApp Integration: The integration with WhatsApp may have limitations imposed by
WhatsApp's policies and APIs. Changes in WhatsApp's policies or APIs could impact the
system's functionality.
3. Sensor Accuracy: The accuracy of the sensors used for temperature, humidity, and motion
detection may vary. Calibration and periodic maintenance may be required to ensure accurate
readings.
4. Limited Sensor Range: The range of the sensors may be limited, meaning they can only
monitor conditions in a specific area. Multiple sensors may be needed for larger spaces.
5. Power Outages: Power outages or disruptions may affect the system's operation. Implementing
6. Maintenance and Updates: The system may require periodic maintenance and updates to
ensure it continues to function correctly. This includes software updates, sensor calibration, and
hardware checks.
7. Data Storage: If the system stores historical data for trend analysis, it may require significant
data storage capacity. Managing and securing this data can be a limitation.
8. False Alerts: Motion sensors can sometimes trigger false alerts due to environmental factors
like pets or moving objects. Implementing logic to reduce false alerts can be challenging.
CHAPTER TWO
The development of a WhatsApp-Based Room Temperature, Humidity, and Motion Status Alert
unique, several related studies and technologies offer valuable insights into various aspects of
this project. IoT has revolutionized environmental monitoring in various domains. Research on
IoT-based environmental monitoring systems often focuses on sensor integration, data collection,
and remote access. Studies such as "IoT-Based Environment Monitoring System for Healthcare"
by Arif Sariarslan et al. (2020) demonstrate how IoT can be applied to monitor various
with the broader field of home automation and smart homes. Researchers like Shukor Abd Razak
et al. in "IoT-Based Smart Home System: A Review" (2020) have explored the integration of IoT
technologies for improving home automation and comfort. Remote monitoring and alert systems
have been developed for various applications, including security and healthcare. Research by
Leila Cheikhi et al. in "A Review on IoT-Based Monitoring Systems" (2018) provides insights
Studies on mobile-based alert systems often focus on emergency notifications and disaster
management. Research like "A Survey of Mobile Phone Sensing Systems" by Nicholas D. Lane
et al. (2010) discusses the potential of using mobile devices for sensing and alerting. Integrating
Security and privacy concerns are paramount when developing IoT-based systems. Research on
securing IoT devices, like "A Survey of Security in Internet of Things" by Alireza Jolfaei et al.
(2017), highlights the importance of data encryption and access control mechanisms. Effective
data visualization is critical for users to understand and act upon environmental data. Research
on data visualization techniques, such as "A Survey on Visualization Software for the Internet of
Things" by Daniele Baracchi et al. (2017), can inform the design of user-friendly interfaces.
Efficient real-time communication is essential for sending alerts via WhatsApp. Research on
real-time communication protocols and platforms, such as "A Comparison of MQTT and HTTP
as Web Protocols for IoT" by Eriks Klotins et al. (2015), can guide the selection of
Temperature, Humidity, and Motion Status Alert System, existing literature on IoT,
experience provides a rich foundation of knowledge to inform the design and implementation of
such a system. These studies offer insights into the technological, security, and usability
Examining real-world case studies of environmental monitoring systems can provide insights
into practical challenges and solutions. Investigating projects like the "Smart Cities and IoT: A
User interface design and user experience are critical aspects of the WhatsApp-Based Room
Monitoring System. Research on HCI and user-centered design, such as "User-Centered Design
of Privacy-Enhancing Technologies" by Lorrie Faith Cranor (2008), can inform the development
3.1 METHODOLOGY
This involves creating an architecture that integrates various components, including sensors,
microcontrollers, software modules, and the WhatsApp API, to enable real-time monitoring and
System Architecture
The system architecture consists of three main components: Sensors and Microcontrollers, Data
- Temperature Sensor: Monitors the room temperature and provides temperature data to the
microcontroller.
- Humidity Sensor: Measures the humidity level in the environment and sends the data to the
microcontroller.
- Motion Sensor: Detects motion within the room and relays the information to the
microcontroller.
- Microcontroller (e.g., Raspberry Pi): Gathers data from sensors, processes the information, and
- Data Processing Module: Receives sensor data from the microcontroller, processes it to ensure
- Alerting Logic: Compares the real-time sensor data with predefined thresholds for temperature,
humidity, and motion. If thresholds are breached, the alerting logic triggers alerts through the
WhatsApp API.
- WhatsApp API Integration: Utilizes the WhatsApp API to send alerts, including room
temperature, humidity status, and motion detection, to registered users via WhatsApp messages.
- Web-Based User Interface: Allows users to configure alert thresholds for temperature,
- WhatsApp Integration: Provides an interface for users to link their WhatsApp account with the
3.2.1 WORKFLOW
1. Data Acquisition:
2. Data Processing:
- Processed data is sent to the Data Processing Module.
3. Alert Generation:
- If a threshold is breached, the system generates an alert using the WhatsApp API.
- The alert includes the type of alert (temperature, humidity, or motion) and the current status.
4. WhatsApp Alert:
- The system delivers the alert to the registered user's WhatsApp number.
5. User Interaction:
- Users can interact with the system via a web-based interface to set alert thresholds and
- Data Encryption: All communication, especially alerts sent via WhatsApp, is encrypted to
- User Authentication: Users are required to authenticate themselves securely before linking their
- Data Privacy Compliance: The system adheres to relevant data privacy regulations to ensure
1. Microcontroller:
- Purpose: Collects data from sensors, processes it, and controls system
operations.
2. LEDs:
3. Motion Sensor:
4. Temperature Sensor:
- Purpose: Enables communication with the internet for data transmission and WhatsApp
alerts.
7. Power Supply:
8. Enclosure/Chassis:
1. Programming Languages:
#include <DHT.h>
#include <LiquidCrystal.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#include <UrlEncode.h>
const int pirPin = D1; // Define the pin for the PIR motion sensor
WiFiClient client;
HTTPClient http;
http.begin(client, url);
http.addHeader("Content-Type", "application/x-www-form-urlencoded");
if (httpResponseCode == 200){
else{
Serial.println(httpResponseCode);
// Free resources
http.end();
}
void setup() {
Serial.begin(9600);
WiFi.begin(ssid, password);
Serial.println("Connecting");
while(WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
Serial.println("");
Serial.println(WiFi.localIP());
pinMode(pirPin, INPUT);
dht.begin();
lcd.begin(16, 2);
lcd.print("Temp: ");
lcd.setCursor(0, 1);
lcd.print("Hum: ");
void loop() {
lcd.setCursor(6, 0);
lcd.print(temperature);
lcd.setCursor(11, 0);
lcd.print("C");
lcd.setCursor(6, 1);
lcd.print(humidity);
lcd.setCursor(11, 1);
lcd.print("%");
if (isnan(temperature) || isnan(humidity)) {
} else {
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println(" %");
// Motion detected
Serial.println("Motion Detected!");
sendMessage("Hello, MOTION DETECTED IN YOUR HOME,TAKE NECESSARY
ACTION");
motionDetected = true;
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.print(humidity);
Serial.println("%");
// Reset motion detection flag after a delay to allow for another detection
if (motionDetected) {
motionDetected = false;
- Various cables and connectors for connecting sensors, microcontrollers, and other
components.
- Purpose: Design and manufacture a custom circuit board for the system.
- Develop user-friendly interfaces for configuring alert thresholds and visualizing environmental
data.
Setting up a involves configuring the hardware components, implementing the software logic,
1. HARDWARE SETUP:
1. Connect Sensors:
- Connect the temperature sensor, humidity sensor, and motion sensor to the chosen
2. Internet Connectivity:
3. Power On:
- Powering on the microcontroller and ensured that the sensors are functioning correctly.
2. SOFTWARE SETUP:
- Installation of the required Python libraries using pip (e.g., `pip install twilio` for Twilio
integration).
- Python scripts to read data from the temperature, humidity, and motion sensors.
trigger alerts.
- Create a Twilio account and obtain the Twilio SID, Auth Token, and Twilio phone number.
- Use the Twilio Python library to integrate WhatsApp API for sending alerts.
- Developed a web interface using HTML, CSS, and JavaScript to allow users to set alert
thresholds.
- Integrate JavaScript functions with the backend (Python) to send the threshold configurations
to the server.
1. Integrate Components:
- Combine the sensor reading, data processing, alerting, and user interface components into a
cohesive system.
- Tested the system by simulating various conditions (temperature, humidity, motion) to ensure
CHAPTER FOUR
The experimental setup involved configuring the system with selected hardware components,
integrating the WhatsApp API, and deploying the solution in a controlled environment. Sensors
4.3 RESULTS
- Temperature Monitoring:
The system accurately monitored room temperature, with a range of 18°C to 30°C.
Notifications were generated for humidity levels surpassing the defined thresholds.
- Motion Detection:
The motion sensor successfully detected motion within the room. Real-time alerts were
The system effectively integrated with the WhatsApp API, enabling real-time alert delivery to
users. Users received timely alerts for temperature, humidity, and motion status.
The user interface provided an intuitive platform for users to set alert thresholds. Users could
configure threshold values for temperature, humidity, and motion according to their preferences.
4.4 DISCUSSION
The system demonstrated consistent and accurate monitoring of environmental parameters. Real-
time alerts were dispatched promptly upon breaching predefined thresholds. The integration with
4.5 Limitations
Latency: In some cases, there was a slight delay in WhatsApp alerts due to network latency.
Dependency on Internet: The system relies on an internet connection for alert delivery, posing
CHAPTER FIVE
5.1 CONCLUSION
Effective Monitoring, The system demonstrated its ability to accurately monitor room
temperature, humidity, and motion. Real-Time Alerting: Integration with WhatsApp facilitated
The intuitive user interface allowed users to easily configure alert thresholds and interact with
the system. The WhatsApp-Based Room Temperature, Humidity, and Motion Status Alert
System successfully met its primary objectives of real-time monitoring and alerting, contributing
to the field of IoT-based environmental monitoring systems. The system provided an effective
means of alerting users about critical environmental changes, promoting a more comfortable and
communication platforms like WhatsApp to enhance the reach and efficacy of IoT-based
monitoring solutions. The system opens doors for further advancements in smart home
5.3 RECOMMENDATIONS
Enhancing Alerting Mechanism , Offline Alert Storage, Implement a mechanism to store alerts
locally when offline and send them once the internet connection is re-established, ensuring
timely notifications.
predict future environmental conditions based on historical data, aiding in proactive alerting.
Enhanced User Experience, Mobile Application Develop a mobile application for easy and on-
Network Dependency: The system's dependency on internet connectivity for WhatsApp alerts
Latency: Minor delays in alert delivery due to network latency may impact the immediacy of
notifications.
Cost of Implementation: The cost of integrating with third-party services like Twilio for