LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsPIR sensors need you to move across their view; 5.8 GHz microwave radar modules detect much smaller movements and work behind plastic. The Moresense MS58 module gives a digital high when it detects motion. The Nano keeps a 12 V LED strip on through a MOSFET module for two minutes after the last detection, and fades it off.
Keep all mains parts out of the bathroom; this project uses a 12 V strip and an adapter outside the wet area.
Tick anything you already have and the total updates.
Moresense MS58 5.8 GHz radar motion module
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V adapter; the Nano runs from it through the 5 V buck.
radar_light.inoVerify & upload in Electrolarkconst unsigned long HOLD_MS = 120000;
unsigned long last = 0;
int level = 0;
void setup() { pinMode(2, INPUT); pinMode(9, OUTPUT); }
void loop() {
if (digitalRead(2) == HIGH) last = millis();
int target = (millis() - last < HOLD_MS && last != 0) ? 255 : 0;
level += (target > level) ? 5 : (target < level) ? -1 : 0; // quick on, slow fade off
analogWrite(9, level);
delay(10);
}
Radar sees through thin walls and picks up fans or people outside; reduce sensitivity or move it.
Check the module's supply range and the OUT pin.
Common ground between the Nano, MOSFET and adapter.
These modules transmit milliwatts, far less than a phone.
Yes, and through plastic and thin wood, which is why mounting matters.
Use a relay wired by an electrician; this project keeps to 12 V.
8 parts: Moresense MS58-2020D9M4-L 5.8GHz Microwave Radar Motion Sensor Module – 3-4m Range, Generic Nano CH340 Development Board (Soldered), MOSFET Switch Module, Relay Replacement (D4184 / LR7843), 2835 SMD LED Strip 12V, 5 m, DC Power Adapter (5.5x2.1mm), Step-Down Converter to 5V USB / 5V 3A, 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 (radar_light.ino).
About ₹833 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How microwave Doppler radar modules work; Retriggerable timers; PWM dimming of a 12 V strip with a MOSFET.
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.
Learning project. Check every circuit and the datasheet of each part before you power it up.