LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThe rain plate has two comb-shaped tracks. Water bridges them and lowers the resistance, and the LM393 board turns that into a digital signal: DO goes LOW when wet. The Arduino reads DO on D2 and sounds the active buzzer on D8 while the plate is wet. Use it to warn you to bring the washing in.
Every part for this build comes in the Geekobot Spark Kit box, a Geekobot exclusive, together with the parts for all 24 projects, from a first blinking LED to a smart fan and a reaction game. The wiring below is the kit's own wiring.
Tick anything you already have and the total updates.
The brain of every Spark Kit project
Rain plate and LM393 board with digital output
Female-to-female or male-to-female leads for the modules
Sensor Shield v5.0 from the kit: every pin has its own G, V, S header, so modules plug in with female jumpers
Follow the colours: red is power, dark grey is ground, blue is a signal.
spark_kit_12_rain_alarm.inoVerify & upload in Electrolark// Spark Kit 12: rain alarm
int rain = 2; // DO, LOW when wet
int buzzer = 8;
void setup() {
pinMode(rain, INPUT);
pinMode(buzzer, OUTPUT);
}
void loop() {
if (digitalRead(rain) == LOW) {
digitalWrite(buzzer, HIGH);
} else {
digitalWrite(buzzer, LOW);
}
delay(100);
}
Use the kit's USB cable (some phone cables carry power only), install the CH340 driver on Windows if the port does not appear, and pick Tools > Board > Arduino Uno.
Turn the trimmer until the DO LED goes off, and dry the plate fully.
Normal for bare tracks left wet. Power the board only when you read it, or wipe and dry it after rain.
Yes: read the AO pin with analogRead() instead of DO; a wetter plate gives a different number.
Only the plate goes outside. Keep the LM393 board and the Arduino dry and indoors.
Yes. It is one of the 24 projects in the Geekobot Spark Kit, and every part on the list comes in the kit box. You can also buy the parts one by one from the list above.
No. Every Spark Kit project is wired on the breadboard or the Sensor Shield with jumper wires.
6 parts: Uno R3 CH340G ATmega328p Compatible Development Board, Arduino USB-A to USB-B Data Cable for UNO/MEGA, Generic Raindrops Detection Sensor Module – LM393 Comparator, Analog/Digital Output, PCB Mounted Active Buzzer Module, Dupont Jumper Wires (40 pcs) and Arduino Sensor Shield V5 Expansion Board. On this page you can tick the parts you already have and add only the rest to your cart.
No. This page has the complete, tested code (spark_kit_12_rain_alarm.ino).
About ₹474 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Water detection; Active-low digital sensors; A simple alarm system.
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.