LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsPIR sensors only see movement, so they think a person reading quietly has left. mmWave radar like the HLK-LD2402 picks up the tiny movements of breathing, so it can tell that someone is still there. Its OUT pin goes high while a person is present. The ESP32 counts sitting time on an OLED, beeps after 50 minutes and resets once you have been away for two minutes.
Tick anything you already have and the total updates.
Hi-Link HLK-LD2402 24 GHz presence radar
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB.
break_timer.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const int OUT = 27, BUZ = 26;
const unsigned long SIT_MIN = 50, AWAY_S = 120;
unsigned long sitStart = 0, lastSeen = 0;
void setup() {
pinMode(OUT, INPUT); pinMode(BUZ, OUTPUT);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
}
void loop() {
unsigned long now = millis();
bool here = digitalRead(OUT) == HIGH;
if (here) { if (!sitStart) sitStart = now; lastSeen = now; }
if (sitStart && now - lastSeen > AWAY_S * 1000) sitStart = 0; // you took a break
unsigned long mins = sitStart ? (now - sitStart) / 60000 : 0;
oled.clearDisplay(); oled.setTextColor(WHITE);
oled.setTextSize(1); oled.setCursor(0, 0); oled.print(here ? "At the desk" : "Away");
oled.setTextSize(3); oled.setCursor(0, 24); oled.print(mins); oled.setTextSize(1); oled.print(" min");
oled.display();
if (mins >= SIT_MIN && here) { digitalWrite(BUZ, (now / 500) % 2); }
else digitalWrite(BUZ, LOW);
delay(200);
}
The radar sees a fan, curtain or the next room; aim it at the chair and reduce its range with Hi-Link's tool.
Wrong supply voltage or OUT pin; check the datasheet pinout.
Raise AWAY_S; very still sitting can drop out briefly.
Yes, radar passes through wood and plastic, but not metal.
No, it only senses movement and presence; nothing is recorded.
Yes, drive a relay module from the same OUT signal.
6 parts: Hi-Link HLK-LD2402 24GHz Human Presence Radar Sensor – GPIO/UART Interface, ESP32-WROOM-32 38-Pin Development Board, 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 beginner project and takes about 1 hour. The build on this page has 5 steps.
No. This page has the complete, tested code (break_timer.ino).
About ₹816 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Presence radar vs PIR motion sensors; Using a sensor's digital output pin; Simple timers with millis().
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.