LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsDuring winter smog and festival smoke, PM2.5 indoors can rise as high as outdoors. The Sensirion SEN50 is a laser particle sensor with a long-life fan and digital I2C output, used in commercial air purifiers. Sensirion's own Arduino library reads all four particle sizes; the ESP32 shows PM2.5 on an OLED with India's AQI-style bands.
Tick anything you already have and the total updates.
Sensirion SEN50 particle sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB 5 V; the fan needs 5 V.
sen50.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
#include <SensirionI2CSen5x.h>
SensirionI2CSen5x sen5x;
void setup() {
Wire.begin();
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); oled.setTextColor(WHITE);
sen5x.begin(Wire);
sen5x.deviceReset();
sen5x.startMeasurement();
}
void loop() {
float pm1, pm25, pm4, pm10, rh, t, voc, nox;
uint16_t err = sen5x.readMeasuredValues(pm1, pm25, pm4, pm10, rh, t, voc, nox); // the SEN50 gives only PM values
oled.clearDisplay(); oled.setTextSize(1); oled.setCursor(0, 0);
if (err) { oled.print("Read error "); oled.print(err); oled.display(); delay(1000); return; }
oled.print("PM2.5 ug/m3 PM10 "); oled.print(pm10, 0);
oled.setTextSize(3); oled.setCursor(0, 20); oled.print(pm25, 0);
oled.setTextSize(1); oled.setCursor(0, 55);
oled.print(pm25 <= 30 ? "Good" : pm25 <= 60 ? "Satisfactory" : pm25 <= 90 ? "Moderate - close windows" : "Poor - run purifier");
oled.display();
delay(2000);
}
SDA and SCL are swapped, SEL is not on GND, or the sensor has no 5 V.
Normal: the SEN50 has no humidity or temperature sensor; the SEN54 and SEN55 do.
Cooking smoke is real PM2.5; measure the bedroom away from it.
The SEN5x cleans its fan automatically about once a week while running.
They follow India's National AQI PM2.5 breakpoints: up to 30 good, 31-60 satisfactory, 61-90 moderate.
Yes, send the values to a spreadsheet or MQTT over Wi-Fi.
5 parts: Sensirion SEN50-SDN-T Environmental Sensor Module – PM2.5, Temperature, Humidity, I2C Digital, ESP32-WROOM-32 38-Pin Development Board, 0.96" OLED Display 128x64, 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.
It is a beginner project and takes about 1 hour. The build on this page has 4 steps.
No. This page has the complete, tested code (sen50.ino).
About ₹3,244 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How laser particle counters work; Reading a Sensirion sensor with its official library; What the PM bands mean.
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.