LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsThe DYP-A06LYU is a sealed IP67 ultrasonic sensor with a 25-600 cm range. In UART auto mode it sends a 4-byte frame about every 100 ms: 0xFF, distance high byte, distance low byte, and a checksum, with distance in millimetres. The Nano reads it with SoftwareSerial and drives a traffic-light LED module and a buzzer.
Use it as a guide only; always watch where you are driving.
Tick anything you already have and the total updates.
DYP-A06LYU 25-600 cm UART ultrasonic sensor
Traffic light LED module
Follow the colours: red is power, dark grey is ground, blue is a signal.
9-12 V adapter into the Nano's VIN, mounted inside the garage.
parking_aid.inoVerify & upload in Electrolark#include <SoftwareSerial.h>
SoftwareSerial dyp(10, 11);
const int STOP_MM = 400, NEAR_MM = 1000;
int readMm() {
while (dyp.available() >= 4) {
if (dyp.read() != 0xFF) continue;
int h = dyp.read(), l = dyp.read(), sum = dyp.read();
if (((0xFF + h + l) & 0xFF) == sum) return h * 256 + l;
}
return -1;
}
void setup() {
Serial.begin(9600); dyp.begin(9600);
for (int p = 5; p <= 8; p++) pinMode(p, OUTPUT);
}
void loop() {
int mm = readMm();
if (mm < 0) return;
Serial.println(mm);
digitalWrite(7, mm > NEAR_MM);
digitalWrite(6, mm <= NEAR_MM && mm > STOP_MM);
digitalWrite(5, mm <= STOP_MM);
if (mm <= STOP_MM) tone(8, 2000, 100);
delay(100);
}
TX goes to D10; and check the sensor is the UART 'U' version.
The sensor cannot see inside 25 cm; mount it so the car stops further away.
Angle the sensor so it sees the bumper squarely, not the floor.
It is sealed to IP67, so it works outdoors and in dusty garages.
Yes, it is often used on water tanks; mount it on the lid pointing down.
This sensor is waterproof and reaches 6 m; the HC-SR04 is for indoor bench projects.
7 parts: DYP-A06LYU-V1.1 Ultrasonic Distance Sensor 25-600cm Range – UART Auto, PWM, Switch Outputs, Generic Nano CH340 Development Board (Soldered), LED Traffic Lights Signal Module / Digital Signal Output Traffic Light Module, Buzzer Module 3.3–5V, DC Power Adapter (5.5x2.1mm), 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 beginner project and takes about 2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (parking_aid.ino).
About ₹1,661 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Reading a binary UART frame with a checksum; Waterproof ultrasonic sensors and their dead zone; Turning distance into simple signals.
Use it as a guide only; always watch where you are driving.
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.