LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsDetect the first drops of rain and put a clear reminder on the LCD before anyone leaves the house. The rain board's digital output is HIGH while the plate is dry and drops LOW the moment water bridges its tracks. The blue potentiometer on the comparator board sets how wet the plate must be before that happens, turn it until a single drop is enough. Notice that the sketch only redraws the LCD when the state actually changes; constantly clearing a display makes it flicker.
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
16x2 LCD with I2C backpack: four wires, two lines of text
Rain sensor board with comparator module
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_20_umbrella_reminder.inoVerify & upload in Electrolark#include <Wire.h>
#include <LiquidCrystal_I2C.h>
int rainPin = 2;
LiquidCrystal_I2C lcd(0x27, 16, 2);
int lastState = -1;
void setup()
{
pinMode(rainPin, INPUT);
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Weather Check");
delay(2000);
lcd.clear();
}
void loop()
{
int rainState = digitalRead(rainPin);
if (rainState != lastState)
{
lcd.clear();
if (rainState == LOW)
{
lcd.setCursor(0, 0);
lcd.print("RAIN DETECTED!");
lcd.setCursor(0, 1);
lcd.print("Take umbrella");
}
else
{
lcd.setCursor(0, 0);
lcd.print("Weather: Clear");
lcd.setCursor(0, 1);
lcd.print("Have a nice day");
}
lastState = rainState;
}
delay(200);
}
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 the small contrast pot on the back of the I2C board. If still blank, change 0x27 in the sketch to 0x3F.
Wet the board with a few drops and turn the comparator's trim pot until its LED switches.
The rain board's digital output is HIGH while the plate is dry and drops LOW the moment water bridges its tracks. The blue potentiometer on the comparator board sets how wet the plate must be before that happens, turn it until a single drop is enough. Notice that the sketch only redraws the LCD when the state actually changes; constantly clearing a display makes it flicker.
Dry plate: Weather: Clear / Have a nice day. Sprinkle a few drops of water: RAIN DETECTED! / Take umbrella. Dry the plate and the message returns to clear.
Yes. It is project 20 of 61 in the Geekobot Explorer Kit, in level 4 (Light, colour and sensing). 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.
6 parts: Generic Nano CH340 Development Board (Soldered), USB Cable, Dupont Jumper Wires (40 pcs), LCD1602 16x2 Character LCD Display, Generic Raindrops Detection Sensor Module – LM393 Comparator, Analog/Digital Output 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 beginner project and takes about 30 minutes. The build on this page has 5 steps.
No. This page has the complete, tested code (explorer_kit_20_umbrella_reminder.ino).
About ₹571 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Conditional logic driving a display; Weather sensing with a digital module; Remembering the previous state to avoid flicker; Adjusting a comparator's sensitivity.
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.