Gas Detection mobile alerts using IoT | ESP8266 | Blynk IoT | Engineering IoT Projects
HTML-код
- Опубликовано: 5 июл 2024
- Welcome to our step-by-step tutorial on building a Gas Leakage Detection and Alert System using the ESP8266, MQ-6 gas sensor, and Blynk IoT platform !
In this video, you'll learn how to create a smart and reliable gas leakage detection system that sends instant notifications to your mobile device in case of any gas leakage, ensuring safety and peace of mind for you and your loved ones.
Video chapters:
0:00 - Components
0:23 - Connections
0:34 - Blynk IoT Setup
2:30 - Code
3:00 - Testing
3:32 - Outro
If you found this tutorial helpful, please give it a thumbs up, share it with your friends, and subscribe to our channel for more exciting projects and tutorials.
Stay safe and happy making!
#GasLeakageDetection #ESP8266 #BlynkIoT #MQ6Sensor #IoT #DIYProjects #SmartHome #Arduino #TechTutorial #HomeSafety - Наука
this is awesome project for nodemcu
Definitely 🫡
Here's the code:
#define BLYNK_TEMPLATE_ID ""
#define BLYNK_TEMPLATE_NAME "Gas leakage alert"
#define BLYNK_AUTH_TOKEN ""
#define BLYNK_PRINT Serial
#include
#include
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = ""; // type your wifi name
char pass[] = ""; // type your wifi password
int smokeA0 = A0;
int data = 0;
int sensorThres = 100;
BlynkTimer timer;
void sendSensor(){
int data = analogRead(smokeA0);
Blynk.virtualWrite(V0, data);
Serial.print("Pin A0: ");
Serial.println(data);
if(data > 300){
//Blynk.email("test@gmail.com", "Alert", "Gas Leakage Detected!");
Blynk.logEvent("gas_alert","Gas Leakage Detected");
}
}
void setup(){
pinMode(smokeA0, INPUT);
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
//dht.begin();
timer.setInterval(2500L, sendSensor);
}
void loop(){
Blynk.run();
timer.run();
}