LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsGalvanic skin response (GSR) is the small change in how well your skin conducts electricity when you are tense or calm. A Grove GSR module with finger straps turns that into a voltage. A MAX30205 sensor measures skin temperature to 0.1 °C. The Nano shows both as a bar and a number, so you can see the effect of slow breathing in a few minutes.
This is a learning project, not a medical device. Never use it to diagnose or treat anything.
Power it from a laptop on battery or a USB power bank, never from a mains supply while the straps are on.
Tick anything you already have and the total updates.
Grove GSR sensor with finger straps
MAX30205 body temperature sensor, I2C
CJMCU-6701 GSR module, an alternative to the Grove board
Disposable ECG electrodes for the heart-signal variation with an ECG board
Finger vein module: compare a biometric ID sensor with a biofeedback sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
gsr_meter.inoVerify & upload in Electrolark#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const uint8_t MAX30205 = 0x48; // A0-A2 all low
float smooth = 0, baseline = 0;
float readSkinC() {
Wire.beginTransmission(MAX30205); Wire.write(0x00); Wire.endTransmission(false);
Wire.requestFrom(MAX30205, (uint8_t)2);
int16_t raw = (Wire.read() << 8) | Wire.read();
return raw * 0.00390625;
}
void setup() {
Serial.begin(115200);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
for (int i = 0; i < 50; i++) { baseline += analogRead(A0); delay(20); }
baseline /= 50; smooth = baseline;
}
void loop() {
int g = analogRead(A0);
smooth = smooth * 0.95 + g * 0.05;
// On the Grove board a higher reading means lower skin conductance, i.e. calmer
int calm = constrain(map((long)smooth, (long)baseline - 60, (long)baseline + 60, 0, 100), 0, 100);
float t = readSkinC();
Serial.print(g); Serial.print(','); Serial.print(smooth); Serial.print(','); Serial.println(t, 2);
oled.clearDisplay(); oled.setTextColor(WHITE);
oled.setTextSize(1); oled.setCursor(0, 0); oled.print("Calm");
oled.drawRect(0, 12, 128, 14, WHITE); oled.fillRect(2, 14, calm * 124 / 100, 10, WHITE);
oled.setTextSize(2); oled.setCursor(0, 36); oled.print(t, 1); oled.print(" C skin");
oled.display();
delay(100);
}
The sketch above runs here on a simulated Arduino Nano. Move the sliders for the sensors and buttons it reads, and watch the Serial monitor, display and outputs change.
Recheck the trimmer calibration without the straps, and that the strap plug is fully in.
Rest the hand still; GSR is very sensitive to movement and pressure on the straps.
Check the I2C address with a scanner; it is 0x48 when all address pins are low.
No. GSR changes with many things, such as heat, movement and surprise, and cannot tell truth from lies.
No. Skin is usually a few degrees cooler and changes with the room.
Yes, open the Arduino Serial Plotter: it shows the raw, smoothed and temperature lines.
9 parts: Nano CH340 Development Board (Soldered), Seeed Studio Studio Grove GSR Sensor v1.2 – Galvanic Skin Response Module w/ Finger Straps, MAX30205MTA Human Body Temperature Sensor Module – I2C Interface, 0.96" OLED Display 128x64, CJMCU-6701 GSR Skin Sensor Module, Disposable ECG Chest Electrode for Adults (Pack of 10), Waveshare Thin-Type Finger Vein Recognition Module (B) – Cortex-M4F, IP56, USB/UART, 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 1 to 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (gsr_meter.ino).
Yes. The Run it panel under the code runs this exact sketch on a simulated board. Move the sliders or press the buttons for the sensors it reads, and the Serial monitor, display and outputs react as they will on the real build. It is a simulation, so real readings depend on your parts and wiring.
About ₹5,136 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
What GSR measures and what it does not; Reading an I2C temperature sensor; Smoothing a slow biological signal.
This is a learning project, not a medical device. Never use it to diagnose or treat anything. Power it from a laptop on battery or a USB power bank, never from a mains supply while the straps are on.
Ideas that reuse this build: Air quality station. They are listed under Take it further on this page.
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.
307,307.02,0.00 308,307.07,0.00 307,307.07,0.00 308,307.11,0.00 307,307.11,0.00 306,307.05,0.00 307,307.05,0.00 307,307.05,0.00
A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.