LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThe DHT11 also measures relative humidity: how much water vapour the air holds compared with the most it could hold at that temperature. Same wiring and library as project 13; only the read call changes, to dht.readHumidity(). Breathe on the sensor and watch the number climb.
Every part for this build comes in the Geekobot Spark Kit box, a Geekobot exclusive, together with the parts for all 24 projects, from a first blinking LED to a smart fan and a reaction game. The wiring below is the kit's own wiring.
Tick anything you already have and the total updates.
The brain of every Spark Kit project
DHT11 temperature and humidity module
Female-to-female or male-to-female leads for the modules
Sensor Shield v5.0 from the kit: every pin has its own G, V, S header, so modules plug in with female jumpers
Follow the colours: red is power, dark grey is ground, blue is a signal.
spark_kit_14_humidity_checker.inoVerify & upload in Electrolark// Spark Kit 14: humidity checker
#include <DHT.h>
#define DHTPIN 2
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(9600);
dht.begin();
}
void loop() {
float h = dht.readHumidity(); // percent
if (isnan(h)) {
Serial.println("DHT11 not found: check the wiring");
} else {
Serial.print("Humidity: ");
Serial.print(h, 0);
Serial.println(" %");
}
delay(2000);
}
Use the kit's USB cable (some phone cables carry power only), install the CH340 driver on Windows if the port does not appear, and pick Tools > Board > Arduino Uno.
Same fixes as project 13: wiring, library, and 2 seconds between reads.
Indian monsoon rooms often sit at 70 to 90 percent. Compare with a weather app for your city.
20 to 90 percent relative humidity, to about plus or minus 5 percent.
Yes: call both readTemperature() and readHumidity() in the same loop.
Yes. It is one of the 24 projects in the Geekobot Spark Kit, and every part on the list comes in the kit box. You can also buy the parts one by one from the list above.
No. Every Spark Kit project is wired on the breadboard or the Sensor Shield with jumper wires.
5 parts: Uno R3 CH340G ATmega328p Compatible Development Board, Arduino USB-A to USB-B Data Cable for UNO/MEGA, Generic DHT11 Digital Temperature & Humidity Sensor Module, Dupont Jumper Wires (40 pcs) and Arduino Sensor Shield V5 Expansion Board. 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 20 minutes. The build on this page has 4 steps.
No. This page has the complete, tested code (spark_kit_14_humidity_checker.ino).
About ₹436 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Reading a second value from one sensor; What relative humidity means; Environmental monitoring.
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.