LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsFalls at night often happen on the way to the bathroom in the dark. The DFRobot C4001 is a 24 GHz FMCW mmWave presence sensor that detects people even when they are still, out to about 12 m, with an OUT pin that goes high when someone is present in its zone. Mounted to look at the floor beside the bed (not the bed itself), it sees someone stand up; the Nano lights a dim LED strip, but only when the room is dark.
Keep the cables tidy along the wall so nobody trips on them.
Tick anything you already have and the total updates.
DFRobot Gravity C4001 mmWave presence sensor
LDR light sensor module
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V adapter; buck converter makes 5 V for the Nano.
bed_light.inoVerify & upload in Electrolarkconst int RADAR = 2, DARK = 3, LIGHT = 6;
const unsigned long HOLD_MS = 90000;
unsigned long lastSeen = 0;
int level = 0;
void setup() { pinMode(RADAR, INPUT); pinMode(DARK, INPUT); pinMode(LIGHT, OUTPUT); }
void loop() {
bool dark = digitalRead(DARK) == HIGH; // swap if your LDR module is the other way
if (digitalRead(RADAR) == HIGH && dark) lastSeen = millis();
int target = (lastSeen && millis() - lastSeen < HOLD_MS) ? 60 : 0; // dim: 60 of 255
if (level < target) level++;
if (level > target) level--;
analogWrite(LIGHT, level);
delay(15); // slow fade, no glare
}
The sensor sees the sleeper; aim it lower or shorten its range.
LDR output is reversed or the room is not dark enough; check D3.
Raise HOLD_MS.
No, mmWave radar only senses presence; nothing is recorded.
Yes, add an ESP32 and send a message when someone gets up at night.
Bright light at night wakes people fully and dazzles; a dim floor light is enough to see.
9 parts: DFRobot Gravity C4001 mmWave Human Presence Detection Sensor (12 m Range) – I2C & UART, Generic Nano CH340 Development Board (Soldered), 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 1 hour. The build on this page has 5 steps.
No. This page has the complete, tested code (bed_light.ino).
About ₹2,245 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
mmWave presence sensing; Aiming a sensor at a zone; Combining presence and darkness.
Keep the cables tidy along the wall so nobody trips on them.
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.