LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsForce sensing resistors drop in resistance when pressed: from megaohms with no force to a few kilohms under body weight. The SOUSHINE FSR402 has a 14.7 mm active area and goes in a voltage divider with a 10 kΩ resistor, so the Nano reads a higher voltage the harder it is pressed. FSRs are good at 'pressed or not' and rough force, not precise weight.
Tick anything you already have and the total updates.
SOUSHINE FSR402 force sensing resistor
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB power bank.
sitting_timer.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
void big(const char* top, float value, int dp, const char* unit) {
oled.clearDisplay(); oled.setTextColor(WHITE);
oled.setTextSize(1); oled.setCursor(0, 0); oled.print(top);
oled.setTextSize(3); oled.setCursor(0, 20); oled.print(value, dp);
oled.setTextSize(1); oled.print(" "); oled.print(unit);
oled.display();
}
const int SIT = 300;
const unsigned long LIMIT = 45UL * 60000;
unsigned long start = 0;
bool sitting = false;
void setup() { Serial.begin(9600); oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); }
void loop() {
int v = analogRead(A0);
Serial.println(v);
bool now = v > SIT;
if (now && !sitting) start = millis();
sitting = now;
float mins = sitting ? (millis() - start) / 60000.0 : 0;
big(sitting ? "Sitting for" : "Standing", mins, 0, "min");
if (sitting && millis() - start > LIMIT) tone(8, 1500, 200);
delay(1000);
}
Check the divider; the FSR is in series with 5V, the resistor goes to GND.
Raise SIT; the cushion itself presses a little.
FSRs creep under steady load; set the threshold well below your sitting value.
Only roughly; use a load cell and HX711 for real weight.
Millions of presses if you avoid sharp bends near the tail.
Yes, use the larger FSR406 square sensor for a bigger area.
7 parts: SOUSHINE FSR402 Short Tail Force Sensing Resistor (20g-10Kg) – 14.7mm Active Area, IP65, Resistor Assortment Kit (30 Values), Generic Nano CH340 Development Board (Soldered), 0.96" OLED Display 128x64, 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.
No. This page has the complete, tested code (sitting_timer.ino).
About ₹646 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How a force sensing resistor works; Voltage dividers for resistive sensors; Timing a state with millis().
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.