This is an old revision of the document!


ESP32 smoke detector

  • Author: Paraschiv Theodor-Vlad
  • Email: theodor.paraschiv@stud.acs.pub.ro
  • Master: SRIC

Introduction

This project implements a simple, low-cost smoke and gas detection system using an ESP32 microcontroller, an MQ-2 gas sensor, and an active buzzer. The system reads analog gas/smoke concentration values via the MQ-2 sensor and sends this data periodically to a Firebase Realtime Database.

When dangerous gas levels are detected (above a configurable threshold — 300 in this project), the system triggers an audible alarm using a connected buzzer and sends an immediate alert email via IFTTT Webhooks integration.

A web-based frontend fetches data from Firebase and visualizes it using a graph, with gas/smoke values on the Y-axis and timestamps (converted from UNIX time) on the X-axis, displayed at regular 3-minute intervals.

Hardware Implementation

🧩 Components

  • ESP32 development board
  • MQ-2 Smoke/Combustible Gas sensor
  • Active buzzer
  • Jumpers / wires

iothings/proiecte/2025sric/smokedetector.1748519255.txt.gz · Last modified: 2025/05/29 14:47 by theodor.paraschiv
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0