LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsBare piezoresistive pressure sensors such as the Sencoch GZP160 are Wheatstone bridges: pressure unbalances the bridge by a few millivolts. The HX711, made for load cells, is a 24-bit bridge amplifier with excitation, so it reads these sensors directly. Without factory calibration you get relative pressure: zero it at atmospheric pressure and calibrate with a water column (10 cm of water is about 0.98 kPa). The tester shows pressure and how fast it is dropping.
Do not pressurise thin containers; small pressures over large areas give big forces.
Tick anything you already have and the total updates.
Sencoch GZP160 ±40 kPa bridge pressure sensor, DIP-6
HX711 24-bit bridge ADC module
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB supply.
leak_tester.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
void big(const char* top, float value, int dp, const char* unit) {
oled.clearDisplay(); oled.setTextColor(WHITE);
oled.setTextSize(1); oled.setCursor(0, 0); oled.print(top);
oled.setTextSize(3); oled.setCursor(0, 20); oled.print(value, dp);
oled.setTextSize(1); oled.print(" "); oled.print(unit);
oled.display();
}
#include <HX711.h>
HX711 hx;
float CAL = 52000.0; // counts per kPa, set with a water column
float lastKpa = 0;
unsigned long lastT = 0;
void setup() {
pinMode(2, INPUT_PULLUP);
hx.begin(3, 4);
hx.set_scale(CAL);
hx.tare();
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
}
void loop() {
if (digitalRead(2) == LOW) { hx.tare(); delay(300); }
float kpa = hx.get_units(5);
float rate = 0;
if (millis() - lastT > 5000) { // drop per minute over 5 s
rate = (lastKpa - kpa) * 12; lastKpa = kpa; lastT = millis();
}
big("Pressure", kpa, 2, "kPa");
oled.setTextSize(1); oled.setCursor(0, 56); oled.print("drop/min "); oled.print(rate, 2); oled.display();
delay(200);
}
Bridges change with temperature; let it warm up and keep it out of drafts.
Swap A+ and A-.
Keep bridge wires short and twisted; the HX711's 10 Hz mode is quieter.
Bare bridges are cheaper and teach how sensors work; modules add calibration and an amplifier.
The GZP160-040 reads ±40 kPa, so it also measures light vacuum.
Only with air in the tube; keep liquid off the sensor die.
7 parts: Sencoch GZP160-040DR Pressure Sensor, -40Kpa~40Kpa Range, 1.8V~15V Supply, DIP-6 Package, Generic HX711 Weighing Module Series 24-bit Precision AD Module with Shield & Header Pins, Generic Nano CH340 Development Board (Soldered), 0.96" OLED Display 128x64, Tactile Push Button Switch, 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 3 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (leak_tester.ino).
About ₹621 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Pressure sensors as Wheatstone bridges; Reading a bridge with the HX711; Calibrating with a water column.
Do not pressurise thin containers; small pressures over large areas give big forces.
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.