LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThermocouples are the only cheap sensors that survive oven, tandoor and kiln temperatures. The MAX31856 converts the tiny thermocouple voltage to °C with cold-junction compensation and fault detection, and supports many thermocouple types. The ESP32 reads it over SPI, shows it on an OLED and serves a simple page that lists the last readings, so you can watch the oven warm up from your phone.
Keep the ESP32 and cables away from hot surfaces; only the probe and its high-temperature cable go near the heat.
Tick anything you already have and the total updates.
Adafruit MAX31856 thermocouple amplifier
K-type thermocouple probe, fibreglass cable
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB. Keep the electronics well away from the hot oven.
oven_logger.inoVerify & upload in Electrolark#include <Wire.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
void big(const String& top, const String& value, const String& 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);
oled.setTextSize(1); oled.print(" "); oled.print(unit);
oled.display();
}
#include <WiFi.h>
#include <WebServer.h>
#include <Adafruit_MAX31856.h>
Adafruit_MAX31856 tc(5); // CS on GPIO 5, hardware SPI
WebServer server(80);
const char* SSID = "your-wifi";
const char* PASS = "your-password";
float logC[60]; int n = 0;
unsigned long lastLog = 0;
void page() {
String h = "<meta name=viewport content='width=device-width'><meta http-equiv=refresh content=10><h2>Oven</h2><pre>";
for (int i = 0; i < n; i++) h += String(i) + " min " + String(logC[i], 0) + " C\n";
server.send(200, "text/html", h + "</pre>");
}
void setup() {
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
tc.begin();
tc.setThermocoupleType(MAX31856_TCTYPE_K);
WiFi.begin(SSID, PASS);
server.on("/", page);
server.begin();
}
void loop() {
server.handleClient();
static unsigned long t = 0;
if (millis() - t < 1000) return;
t = millis();
float c = tc.readThermocoupleTemperature();
uint8_t fault = tc.readFault();
if (fault) { big("Probe fault", "ERR", ""); return; }
big(WiFi.localIP().toString(), String(c, 0), "C");
if (millis() - lastLog > 60000 && n < 60) { logC[n++] = c; lastLog = millis(); }
}
The probe is open or shorted: check both wires are tight in the terminal.
The probe wires are swapped.
Check with boiling water (100 °C at sea level) and add an offset.
The MAX31856 reads K-type up to 1350 °C; the limit is the probe and its cable insulation.
Yes, change setThermocoupleType.
Only through a properly rated SSR and enclosure fitted by an electrician.
6 parts: ESP32-WROOM-32 38-Pin Development Board, Adafruit Universal Thermocouple Amplifier MAX31856 Breakout – SPI Interface, XIQI Electric CG-WRNT-02 K-Type Thermocouple Sensor, 1m Fiberglass Cable, M6 Screw Mount, 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 6 steps.
No. This page has the complete, tested code (oven_logger.ino).
About ₹3,607 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How thermocouples and cold-junction compensation work; Reading the MAX31856 over SPI; Detecting an open or shorted probe.
Keep the ESP32 and cables away from hot surfaces; only the probe and its high-temperature cable go near the heat.
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.