Skip to content

DavidBatoDev/alertech-mobile-app

Repository files navigation

Alertech App

Overview

Alertech is an integrated fire detection and alert system composed of a mobile app, a website, and an IoT device. It enables real-time monitoring of temperature, humidity, and smoke levels, and provides instant alerts to users and fire authorities in case of a fire.


Research Motivation

Smart Fire & Gas Leak Alert System (Using ESP32 & Firebase)

This project focuses on real-time fire and gas leak detection using ESP32 and Firebase. By integrating IoT sensors, a mobile app, and a web dashboard, we ensure instant alerts to users and fire stations, even triggering an automated call if necessary.

Empowering Women with Technology

  • Protecting Mothers & Families: Many mothers worry about home safety while taking care of their children. This system allows them to focus on what matters, knowing they’ll be alerted if danger arises.
  • Helping Independent Women: For women living alone, home safety is a real concern. This system ensures they have a reliable, automated backup in case of fire or gas leaks.
  • Supporting Women with Disabilities & Elderly Women: Those who may struggle to react quickly in an emergency will benefit from automated alerts and fire station intervention.

Bayanihan (Neighbor Alert System)

  • Community Support: Neighbors are alerted when a nearby device detects a fire or gas leak, encouraging immediate local assistance before emergency services arrive.
  • Shared Safety Network: Users without personal IoT devices can still benefit from the system by receiving alerts when their neighbors’ devices detect danger.
  • Strengthening Community Bonds: Promotes a culture of communal responsibility, where everyone contributes to neighborhood safety.

More Than Just Technology—It’s About Trust & Security

This project isn’t just about IoT, sensors, and alerts. It’s about creating a future where women feel safer, knowing their homes are monitored and protected. It’s about giving them confidence and control over their surroundings, reducing anxiety, and ensuring help is always available when needed.


Related Repositories

  • 🔥 Alertech FCM API — The API for the FCM to send Notifications to all mobile app for users and neighbors to monitor alerts in real-time.
  • 🌐 Alertech Fire Station Dashboard — The web dashboard for fire stations to monitor and respond to emergencies.
  • ⚙️ Alertech IoT Device Code — The ESP32 code for reading sensor data and sending alerts via Firebase.

System Overview

Mobile App (For Users and Neighbors)

  • Monitor home environment (temperature, humidity, smoke) in real time.
  • Receive alerts when a fire is detected nearby.
  • Users without the IoT device can still receive alerts if a neighbor's device detects a fire.

Website (For Fire Authority)

  • Displays geolocation of all users with devices.
  • Provides access to a user database containing contact information and addresses.
  • Allows monitoring of temperature, smoke, and humidity levels in real time.
  • Monitor and respond to fire alerts.

IoT Device

  • Built with ESP32, DHT22 (for temperature and humidity), and MQ-2 (for smoke detection).
  • Detects temperature, humidity, and smoke levels.
  • Sends alerts to both the user and fire station via Firebase Cloud Messaging (FCM).
  • Updates real-time data to Firebase, accessible through mobile and web apps.

How It Works

ESP32 Monitors the Environment

  • Reads smoke levels and temperature.
  • Sends data to Firebase in real-time.

Instant Notifications to Users, Neighbors, & Fire Stations

  • Mobile app receives alerts via Firebase Cloud Messaging (FCM).
  • Neighbors receive alerts if a nearby device detects danger.
  • Web dashboard updates instantly.

IoT Device Code (MVP)

The IoT device code for the ESP32 integrates multiple components to enable real-time data transmission and alerting through Firebase:

  1. Wi-Fi Setup: Configures the ESP32 to connect to a Wi-Fi network using provided credentials.
  2. Firebase Integration: Authenticates the device and connects to Firestore for real-time data storage.
  3. Sensor Data Collection: Uses the DHT22 sensor to measure temperature and humidity, and the MQ-2 sensor to detect smoke levels.
  4. Data Transmission: Sends collected data to Firebase, making it accessible through mobile and web apps.
  5. Alert System: Triggers Firebase Cloud Messaging (FCM) alerts to notify users, neighbors, and fire authorities via mobile and web apps when smoke levels exceed a predefined threshold.

These components work seamlessly to ensure continuous environmental monitoring and instant fire detection alerts.


Technology Stack

  • Mobile App: React Native CLI with Firebase integration.
  • Web App: React with Firebase for real-time monitoring.
  • IoT Device: ESP32 with DHT22 and MQ-2 sensors, integrated with Firebase.
  • Cloud: Firebase for authentication, database, and notifications.

Usage

  1. Power on the IoT device.
  2. Launch the mobile app to monitor your home or receive alerts.
  3. Fire authorities can use the web app to track alerts and monitor user data.

For any issues or suggestions, please open an issue in the repository.

Program Flow (Mobile App)

Welcome Screen Choose Type: Neighbor or User
Welcome Screen Choose Type
Enter Registered Device User Dashboard: Monitor Sensors
Enter Registered Device User Dashboard
Choose Fire Station If Neighbor Neighbor Dashboard
Choose Fire Station image
Alarm Triggered (Foreground) Alarm Triggered (Background)
image image

Stay safe with Alertech! 🚨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors