LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThe MLX90614 is an infrared thermometer chip: it measures the temperature of whatever it points at, and the ambient temperature of the chip itself. Together with an ESP32 and an OLED it becomes a handy workshop tool for checking a soldering iron, a motor, a heatsink or a cooking pan from a safe distance. Surface finish matters: shiny metal reads low because it reflects the surroundings, so a dab of matt tape on the target helps. This is not a fever thermometer.
Not for medical use.
Keep your hands away from hot surfaces while aiming.
Tick anything you already have and the total updates.
MLX90614 infrared temperature sensor module
Follow the colours: red is power, dark grey is ground, blue is a signal.
Small power bank, so it is a handheld tool.
ir_gun.inoVerify & upload in Electrolark#include <Wire.h>
#include <Adafruit_MLX90614.h>
#include <Adafruit_SSD1306.h>
Adafruit_MLX90614 mlx;
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
float peak = -100;
void setup() {
Wire.begin(21, 22);
mlx.begin();
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
oled.setTextColor(WHITE);
}
void loop() {
float obj = mlx.readObjectTempC();
float amb = mlx.readAmbientTempC();
if (obj > peak) peak = obj;
oled.clearDisplay();
oled.setTextSize(1); oled.setCursor(0, 0); oled.print("Target");
oled.setTextSize(3); oled.setCursor(0, 10); oled.printf("%.1f", obj);
oled.setTextSize(1); oled.setCursor(0, 44); oled.printf("ambient %.1f peak %.1f", amb, peak);
oled.display();
delay(300);
}
Check SDA and SCL, and that your MLX90614 is the 3.3 V version. The address is 0x5A.
Bright metal reflects its surroundings. Put matt tape on the spot to measure.
Wait a second after aiming; the sensor averages the field of view.
No. This build is not calibrated for skin readings and must not be used for medical decisions.
The spot grows with distance; at a few centimetres to half a metre it reads the target well.
About -70 to 380 degrees C for the object.
5 parts: ESP32-WROOM-32 38-Pin Development Board, MLX90614 ESF IR Non-Contact Temperature Sensor Module – I2C Interface, 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 1.5 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (ir_gun.ino).
About ₹1,294 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Reading an MLX90614 over I2C; Showing object and ambient temperature; Why shiny surfaces read wrongly (emissivity).
Not for medical use. Keep your hands away from hot surfaces while aiming.
Ideas that reuse this build: ESP32 MAX6675 oven thermometer. 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.