LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThe HW-MS03 is a small 5.8 GHz-class microwave motion module that senses movement through plastic and wood and is not affected by heat, unlike PIR sensors. Its output goes high for a few seconds whenever something moves. The Nano keeps a 12 V LED strip on for two minutes after the last movement through a MOSFET module.
Keep the 12 V adapter away from water and oil in the garage.
Tick anything you already have and the total updates.
HW-MS03 microwave motion sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V adapter for the strip; buck converter makes 5 V for the Nano.
garage_light.inoVerify & upload in Electrolarkconst int RADAR = 2, LIGHT = 6;
const unsigned long ON_MS = 120000;
unsigned long lastMove = 0;
void setup() { pinMode(RADAR, INPUT); pinMode(LIGHT, OUTPUT); }
void loop() {
if (digitalRead(RADAR) == HIGH) lastMove = millis();
digitalWrite(LIGHT, lastMove && millis() - lastMove < ON_MS);
delay(20);
}
It sees through the wall into the next room or the street; turn it or shield the back with metal foil.
Microwave sensors see moving fan blades; point it away from fans.
Check VIN and the output pin; some modules output only 3.3 V, which the Nano still reads as HIGH.
PIR struggles in hot garages and behind covers; microwave does not.
Yes with a relay module, but have an electrician wire the mains side.
Yes, its output power is tiny.
8 parts: HaiWang HW-MS03 Microwave Radar Motion Sensor Module, 10m Range, Generic Nano CH340 Development Board (Soldered), 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 1 hour. The build on this page has 5 steps.
No. This page has the complete, tested code (garage_light.ino).
About ₹977 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Microwave vs PIR motion sensors; Retriggering a timer on every movement; Switching 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.
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.