LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThe MAX30205 is a clinical-grade temperature sensor chip with 0.00390625 degree resolution. The ESP32 reads its 16-bit temperature register directly over I2C, with no library needed. Held against the skin it shows the contact temperature, which is lower than the body's core temperature. This is an electronics project and not a medical thermometer; do not use it to diagnose or manage illness.
This is not a medical device. Never use it to diagnose or treat illness.
Tick anything you already have and the total updates.
MAX30205 temperature sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB phone charger.
max30205.inoVerify & upload in Electrolark#include <Wire.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const uint8_t ADDR = 0x48;
float readTemp() {
Wire.beginTransmission(ADDR);
Wire.write(0x00); // temperature register
Wire.endTransmission(false);
Wire.requestFrom(ADDR, (uint8_t)2);
int16_t raw = (Wire.read() << 8) | Wire.read();
return raw * 0.00390625;
}
void setup() {
Wire.begin(21, 22);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
}
void loop() {
float sum = 0;
for (int i = 0; i < 8; i++) { sum += readTemp(); delay(100); }
float t = sum / 8;
oled.clearDisplay(); oled.setTextColor(WHITE);
oled.setTextSize(1); oled.setCursor(0, 0); oled.print("Contact temperature");
oled.setTextSize(3); oled.setCursor(0, 22); oled.print(t, 2);
oled.setTextSize(1); oled.setCursor(0, 54); oled.print("degrees C");
oled.display();
}
Check the I2C wiring; run the I2C scanner project to confirm address 0x48.
Skin is cooler than the core. Contact readings also need time to settle.
Keep your hand still and let the chip warm up for 20 seconds.
No. It is an electronics demo and is not a certified medical device.
The chip is rated to about 0.1 degree, but the reading depends on how it touches.
Yes. The chip draws very little current.
5 parts: ESP32-WROOM-32 38-Pin Development Board, MAX30205MTA Human Body 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 hour. The build on this page has 6 steps.
No. This page has the complete, tested code (max30205.ino).
About ₹1,384 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Reading a raw 16-bit temperature register over I2C; Converting it with the 0.00390625 scale factor; Averaging for a stable display.
This is not a medical device. Never use it to diagnose or treat illness.
Ideas that reuse this build: ESP32 MLX90614 contactless 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.