LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsRunning a pump dry ruins it. The DFRobot FS-IR02 photoelectric level sensor has no moving parts: an infrared beam inside its clear tip reflects back in air but escapes into water, so it knows whether its tip is wet. The Nano runs a tiny 3-9 V submersible pump through a MOSFET only while the water is above the sensor, and beeps when it gets low.
Keep the USB charger and electronics dry and away from the water.
Tick anything you already have and the total updates.
DFRobot Gravity FS-IR02 photoelectric liquid level sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
A 5 V 2 A USB charger for the Nano and pump.
fountain.inoVerify & upload in Electrolarkconst int LEVEL = 2, PUMP = 6, BUZ = 8;
const bool WET = HIGH; // check: some versions read LOW in water
void setup() { pinMode(LEVEL, INPUT); pinMode(PUMP, OUTPUT); pinMode(BUZ, OUTPUT); }
void loop() {
bool wet = digitalRead(LEVEL) == WET;
digitalWrite(PUMP, wet);
// a short beep every 30 s while the water is low
digitalWrite(BUZ, !wet && (millis() % 30000) < 200);
delay(100);
}
The sensor logic is the other way; set WET to LOW.
Water ripples; add a 3 second delay before switching off.
Film or a drop on the tip; wipe it and angle it so drops run off.
It runs on 5 V, but keep all wiring and the charger out of reach of chewing pets.
Clean the bowl and pump every week; biofilm builds up fast.
No moving parts to stick with hair or food.
7 parts: DFRobot Gravity FS-IR02 Photoelectric Liquid Level Sensor – High Accuracy Probe with Interface Adapter, Mini DC Submersible Pump 3V-9V (U-Type Nozzle), MOSFET Switch Module, Relay Replacement (D4184 / LR7843), Generic Nano CH340 Development Board (Soldered), 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 2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (fountain.ino).
About ₹1,288 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Optical (photoelectric) liquid level sensing; Protecting a pump from running dry; Driving a small DC pump 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.