LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThe HLK-LD021 is a tiny 5.8 GHz microwave motion sensor that sees movement up to about 10 m and through thin covers, so it can hide inside a switch box. An LDR module tells the Nano whether it is dark. When both say yes, a MOSFET module turns on a 12 V LED strip for 30 seconds, and every new movement restarts the timer.
Keep the 12 V adapter indoors and away from water.
Tick anything you already have and the total updates.
Hi-Link HLK-LD021 5.8 GHz radar
LDR light sensor module
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V adapter for the strip; a buck converter makes 5 V for the Nano.
stair_light.inoVerify & upload in Electrolarkconst int RADAR = 2, DARK = 3, LIGHT = 6;
const unsigned long ON_MS = 30000;
unsigned long lastMove = 0;
void setup() {
pinMode(RADAR, INPUT); pinMode(DARK, INPUT); pinMode(LIGHT, OUTPUT);
}
void loop() {
bool dark = digitalRead(DARK) == HIGH; // most LDR modules give HIGH when dark; swap if yours differs
if (digitalRead(RADAR) == HIGH && dark) lastMove = millis();
digitalWrite(LIGHT, lastMove && millis() - lastMove < ON_MS);
delay(50);
}
Microwave sees through walls and picks up fans; move it or turn its sensitivity down if it has a trimmer.
Check the LDR module output in the dark and the strip's polarity.
The LDR output is the other way round; swap HIGH for LOW in the sketch.
Radar works through a plastic cover and in hot rooms where PIR struggles.
Yes, use analogWrite() on D6 to ramp the brightness up and down.
The sensor and Nano use very little; the strip only runs when lit.
9 parts: Generic Nano CH340 Development Board (Soldered), Hi-Link HLK-LD021 5.8GHz Radar Sensor Module, Human Presence & Motion Detection, Detection Range: 10-12m Radial – TTL Output, Generic Photosensitive Resistor Sensor Module for Arduino – Light Dependent Resistor (LDR), MOSFET Switch Module, Relay Replacement (D4184 / LR7843), 2835 SMD LED Strip 12V, 5 m, Step-Down Converter to 5V USB / 5V 3A, DC Power Adapter (5.5x2.1mm), 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 2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (stair_light.ino).
About ₹850 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Microwave motion sensors; Combining two conditions (dark and movement); Switching a 12 V LED strip with a MOSFET.
Keep the 12 V adapter indoors and away from water.
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.