LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsOzone (O3) kills germs and smells, which is why ozone generators are sold for rooms, cars and water. It also irritates lungs, so the room must clear before anyone returns. The MQ-131 module has a heated sensor whose resistance changes with ozone, with an analog output and an adjustable digital alarm. MQ sensors have a heater: give a new sensor 24 hours of first power to burn in, and a few minutes after each power-up. Their readings depend on temperature and humidity, so use them to spot a rise above clean air, not for exact ppm without calibration.
This is a learning project, not a certified gas detector. Use certified alarms where dangerous gases are possible.
Never stay in a room while an ozone generator is running.
Tick anything you already have and the total updates.
MQ-131 ozone sensor module, analog and TTL
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V USB charger; the heater draws about 150 mA.
ozone_check.inoVerify & upload in Electrolarkint base;
int readA() { long s = 0; for (int i = 0; i < 20; i++) s += analogRead(A0); return s / 20; }
void setup() {
Serial.begin(9600);
pinMode(4, INPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); pinMode(8, OUTPUT);
for (int i = 0; i < 120; i++) { digitalWrite(7, i % 2); delay(1000); } // 2 minute warm-up
base = readA();
}
void loop() {
int a = readA();
bool high = (a - base > 60) || digitalRead(4) == LOW; // many modules pull DO low on alarm
Serial.print(base); Serial.print(" "); Serial.println(a);
digitalWrite(6, high); digitalWrite(7, !high);
digitalWrite(8, high && (millis() / 400) % 2);
delay(500);
}
It was started in ozone or still warming; restart in clean air.
Check the heater is warm and the trimmer is not turned fully one way.
Some modules drive DO high on alarm; change LOW to HIGH in the sketch.
No, without calibration gas it shows the trend from clean air only.
Follow the generator maker's instructions; usually at least an hour with ventilation.
MQ-131 also reacts to some other oxidising gases such as NO2 and chlorine.
7 parts: MQ-131 Ozone Gas Detection Sensor Module – Analog & TTL Output, Generic Nano CH340 Development Board (Soldered), 2 × 5mm LED by Colour (Pack of 10), Resistor Assortment Kit (30 Values), Buzzer Module 3.3–5V, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
No. This page has the complete, tested code (ozone_check.ino).
About ₹1,861 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How MQ heated gas sensors work; Using the digital alarm output and the analog output together; Why ozone treatment needs a waiting time.
This is a learning project, not a certified gas detector. Use certified alarms where dangerous gases are possible. Never stay in a room while an ozone generator is running.
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
See the smoke level live on a crisp screen and get a loud warning when it spikes.
An infrared eye that spots an open flame and raises the alarm.
Walk into the room and it sounds the alarm: the classic first security build.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.