The Gas Leak Detection Bot is an intelligent, low-cost autonomous rover designed to detect hazardous gas leaks (LPG and CO) in real time while keeping humans out of danger. It integrates sensing, navigation, live video streaming, and a web-based control system into a compact and scalable safety solution.
β Why did w decide to make it?Gas leaks in industries, pipelines, and confined environments can be life-threatening. Manual inspection exposes workers to serious risks. During the NavaNieti 24-hour hackathon, we aimed to build a system that eliminates direct human involvement while still enabling fast and reliable detection.
Our focus was to create a solution that is:
- Safe (no human exposure)
- Affordable (using common components)
- Smart (real-time alerts + monitoring)
- Practical (remote operation + live feedback)
- IN1 β GPIO 14
- IN2 β GPIO 27
- IN3 β GPIO 26
- IN4 β GPIO 25
- ENA β GPIO 12 (PWM)
- ENB β GPIO 33 (PWM)
- 12V β Battery Supply
- GND β Common Ground with ESP32
Front Sensor
- TRIG β GPIO 5
- ECHO β GPIO 18
Back Sensor
- TRIG β GPIO
- ECHO β GPIO 21
β οΈ Use voltage divider for ECHO (5V β 3.3V)
π§ IR Sensors- Left IR β GPIO 34
- Right IR β GPIO 35
- LPG Sensor β GPIO 32 (Analog)
- CO Sensor β GPIO 36 (Analog)
- SDA β GPIO 23
- SCL β GPIO 22
- VCC β 3.3V
- GND β GND
- Signal β GPIO 4
- GND β GND
- ESP32 β 5V/3.3V regulated supply
- Motors β Separate battery supply
- All modules share common ground
The system is divided into two parts:
1. ESP32 (Main Controller)
- Hosts WiFi network (ESP32_BOT)
- Runs web server dashboard
- Processes all sensor data
- Controls robot movement
2. ESP32-CAM
- Connects to ESP32 WiFi
- Streams live video feed
- ESP32 initializes all sensors and starts WiFi hotspot
- User connects to
192.168.4.1via browser
Dashboard loads with:
- Movement controls
- Live gas readings
- Video stream
- Dashboard loads with:1. Movement controls2. Live gas readings3. Video stream
- Robot operates in two modes:
Manual Mode
- User controls movement using on-screen buttons
Autonomous Mode
- Ultrasonic + IR sensors detect obstacles
- Robot navigates automatically
- MQ-9 sensors continuously monitor gas levels
- Values converted to PPM
- Compared with safety threshold
If gas exceeds limit:
- Motors stop immediately
- Buzzer activates
- Dashboard shows critical alert
- Location marked on map
- MPU6050 tracks rotation and direction
- Movement path estimated
- Dangerous zones plotted on dashboard
- ESP32-CAM streams MJPEG feed
- Embedded in dashboard
- Provides real-time visual monitoring
The Gas Leak Detection Bot demonstrates how embedded systems and IoT can be combined to improve safety in hazardous environments. It provides real-time monitoring, reduces human risk, and offers a scalable foundation for future industrial automation systems.


















_3u05Tpwasz.png?auto=compress%2Cformat&w=40&h=40&fit=fillmax&bg=fff&dpr=2)
Comments