LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThe Nicla Sense Env carries Renesas environmental sensors (temperature and humidity, an indoor air-quality sensor and an outdoor air-quality sensor) and an RGB LED, and talks to a host over I2C. Arduino's 'Arduino_NiclaSenseEnv' library reads it from any Arduino-compatible host; here an ESP32 reads it and shows the values on an OLED. The air-quality sensors need warm-up time before their readings settle.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB to the ESP32.
air_monitor.inoVerify & upload in Electrolark#include <Arduino_NiclaSenseEnv.h>
#include <Adafruit_SSD1306.h>
NiclaSenseEnv nicla;
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
void setup() {
Serial.begin(115200);
Wire.begin();
nicla.begin();
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
}
void loop() {
auto& th = nicla.temperatureHumiditySensor();
auto& iaq = nicla.indoorAirQualitySensor();
oled.clearDisplay(); oled.setTextColor(WHITE); oled.setTextSize(1);
oled.setCursor(0, 0); oled.printf("Temp %.1f C", th.temperature());
oled.setCursor(0, 16); oled.printf("Hum %.0f %%", th.humidity());
oled.setCursor(0, 32); oled.printf("IAQ %.1f", iaq.airQuality());
oled.setCursor(0, 48); oled.print(iaq.airQualityInterpreted());
oled.display();
delay(2000);
}
Check SDA/SCL and that the Nicla is powered at 3.3 V; run an I2C scanner.
Library versions change names; open the library's examples and copy the calls from there.
The sensor is still warming up; leave it powered.
It gives an estimated CO2 equivalent from the gas sensor, not a true NDIR CO2 reading.
It needs a host for display or networking; it can also connect to Portenta and MKR boards through ESLOV.
It has one sensor for each; choose the value that fits where you place it.
5 parts: Arduino Nicla Sense Env Environmental Sensor Board, ESP32-WROOM-32 38-Pin Development Board, 0.96" OLED Display 128x64, 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 intermediate project and takes about 2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (air_monitor.ino).
About ₹4,584 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Using a sensor board as an I2C peripheral; What indoor air-quality indexes mean; Sensor warm-up and conditioning.
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.