LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsDetect someone crossing an IR beam and raise a silent visual flag that stays lit until it is acknowledged. The IR module holds its output HIGH while the beam is clear and pulls it LOW when something reflects the infrared light back. An intruder passing through takes a fraction of a second, far too fast to notice if you only glance at the LEDs. The intruderSeen flag captures that instant and keeps it, which is why the alert is still there when you return to the room. Silence is deliberate: nothing warns the intruder that they were detected.
Every part for this build comes in the Geekobot Explorer Kit box, a Geekobot exclusive, together with the parts for all 61 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 Explorer Kit project
Male-to-female and female-to-female leads for the modules
LEDs from the kit's red, green, yellow and blue packs
220 ohm resistors: one in series with every LED segment
IR obstacle sensor: OUT goes LOW when something is in front
Nano I/O shield from the kit: every pin has its own S, V, G header, so modules plug in with jumpers
Follow the colours: red is power, dark grey is ground, blue is a signal.
explorer_kit_33_silent_security_alert.inoVerify & upload in Electrolarkint irPin = 2;
int redLed = 7;
int greenLed = 6;
int resetButton = 5;
bool intruderSeen = false;
int eventCount = 0;
void setup()
{
pinMode(irPin, INPUT);
pinMode(redLed, OUTPUT);
pinMode(greenLed, OUTPUT);
pinMode(resetButton, INPUT_PULLUP);
Serial.begin(9600);
Serial.println("Silent monitoring started");
}
void loop()
{
if (digitalRead(irPin) == LOW && !intruderSeen)
{
intruderSeen = true;
eventCount = eventCount + 1;
Serial.print("Intruder detected. Event number ");
Serial.println(eventCount);
}
if (intruderSeen)
{
digitalWrite(redLed, HIGH);
digitalWrite(greenLed, LOW);
}
else
{
digitalWrite(redLed, LOW);
digitalWrite(greenLed, HIGH);
}
if (digitalRead(resetButton) == LOW)
{
intruderSeen = false;
Serial.println("Alert acknowledged and cleared");
delay(400);
}
delay(50);
}
Use the kit's mini-USB cable, install the CH340 driver on Windows if no port appears, pick Tools > Board > Arduino Nano and try Tools > Processor > ATmega328P (Old Bootloader) if the upload times out.
Turn it round: the long leg (anode) goes to the pin side through the 220 ohm resistor, the short leg to GND.
The sketch uses INPUT_PULLUP, so one leg goes to the pin and the other to GND. Use two legs on opposite sides of the button.
Turn its trim pot: the module's LED should light when your hand is about 10 cm away.
The IR module holds its output HIGH while the beam is clear and pulls it LOW when something reflects the infrared light back. An intruder passing through takes a fraction of a second, far too fast to notice if you only glance at the LEDs. The intruderSeen flag captures that instant and keeps it, which is why the alert is still there when you return to the room. Silence is deliberate: nothing warns the intruder that they were detected.
Green LED steady while the area is clear. Pass a hand in front of the sensor: the red LED latches on with no sound at all. Serial Monitor logs Intruder detected. Event number 1.
Yes. It is project 33 of 61 in the Geekobot Explorer Kit, in level 6 (Security and access). Every part on the list comes in the kit box, and you can also buy the parts one by one from the list above.
No. Every Explorer Kit project is wired on the Nano I/O shield and the breadboard with jumper wires.
8 parts: Generic Nano CH340 Development Board (Soldered), USB Cable, Dupont Jumper Wires (40 pcs), Through-Hole LED Pack (Pack of 10), Carbon Film Resistor 1/4W 5% (Pack of 10), Tactile Push Button Switch, Generic Infrared Obstacle Avoidance Sensor Module (Active Low) – LM393 Comparator, 2-30cm Range and Arduino Nano IO Expansion Shield (328P Compatible). On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 30 minutes. The build on this page has 6 steps.
No. This page has the complete, tested code (explorer_kit_33_silent_security_alert.ino).
About ₹468 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
IR digital sensing; Silent flags that latch an event; Counting events across the whole session; Acknowledging an alert with a button.
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.