LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsWhen an extractor fan runs, the air inside the hood or duct sits at a slightly lower pressure than the room. The SDP810 measures that tiny difference between its two ports, down to a fraction of a pascal. The sketch talks to the sensor directly over I2C at address 0x25: it sends the continuous measurement command 0x3615 and reads the pressure, which is divided by the scale factor of 60 to give pascals. If the pressure drop falls too low, the buzzer sounds.
This is an aid, not a certified safety device; follow the hood maker's instructions for dangerous fumes.
Tick anything you already have and the total updates.
Sensirion SDP810 differential pressure sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB or a 5 V adapter.
airflow_check.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const uint8_t SDP = 0x25;
const float MIN_PA = 5.0; // about half your normal reading
void startContinuous() {
Wire.beginTransmission(SDP); Wire.write(0x36); Wire.write(0x15); Wire.endTransmission();
delay(20);
}
bool readPa(float &pa) {
if (Wire.requestFrom(SDP, (uint8_t)3) != 3) return false;
int16_t raw = Wire.read() << 8 | Wire.read();
Wire.read(); // CRC byte, not checked here
pa = raw / 60.0; // SDP810-500Pa scale factor
return true;
}
void setup() {
Wire.begin();
pinMode(5, OUTPUT);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); oled.setTextColor(WHITE);
startContinuous();
}
void loop() {
float pa;
if (!readPa(pa)) return;
float drop = -pa; // - port in the hood reads lower
oled.clearDisplay();
oled.setTextSize(2); oled.setCursor(0, 0); oled.print(drop, 1); oled.print(" Pa");
oled.setTextSize(1); oled.setCursor(0, 40); oled.print(drop < MIN_PA ? "LOW AIRFLOW" : "Airflow OK");
oled.display();
digitalWrite(5, drop < MIN_PA ? HIGH : LOW);
delay(250);
}
The tubes are swapped or the hood is too leaky; check with the fan on full.
Swap the tubes, or remove the minus sign in the sketch.
Check 3.3 V power and pull-up resistors; the address is fixed at 0x25.
Small hoods and solder extractors give a few pascals; ducted fans give tens.
Yes, with a pitot tube on the ports; speed is the square root of twice the pressure over air density.
A fan can spin with a clogged filter; pressure tells you whether air is really moving.
6 parts: Sensirion SDP810-125PA Differential Pressure Sensor, 125 Pa, Digital I2C, Tube Port, Generic Nano CH340 Development Board (Soldered), 0.96" OLED Display 128x64, 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.
It is a advanced project and takes about 2-3 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (airflow_check.ino).
About ₹3,627 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Differential pressure and airflow; Sending commands to an I2C sensor; Setting an alarm threshold.
This is an aid, not a certified safety device; follow the hood maker's instructions for dangerous fumes.
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.