Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
Just Do Electronics
October 23, 2020
Video :-
Circuit Diagram :-
Code :-
//Prateek //www.prateeks.in #include
#include
LiquidCrystal_I2C lcd(0x27, 20, 4); #include
SoftwareSerial mySerial(9,8); int gasValue = A0; int data = 0; int relay = 6; int pir_Status; int buzzerPin = 7; void setup() { randomSeed(analogRead(0)); mySerial.begin(9600); Serial.begin(9600); lcd.init(); lcd.backlight(); pinMode(gasValue, INPUT); pinMode(relay, OUTPUT); pinMode(buzzerPin, OUTPUT); lcd.setCursor(2,0); lcd.print ("WELCOME TO "); lcd.setCursor(2,1); lcd.print ("JUSTDOELECTRONICS"); lcd.setCursor(6,2); lcd.print ("DESIGN By :-"); lcd.setCursor(6,3); lcd.print ("PRATEEK"); delay(3000); lcd.clear(); } void loop(){ data = analogRead(gasValue); Serial.print("Gas Level: "); Serial.println(data); lcd.clear(); lcd.setCursor(1,0); lcd.print ("Exhaust fan :- OFF"); lcd.setCursor(2,1); lcd.print("Gas Level: "); lcd.print(data); delay(1000); if ( data > 700) { SendMessage(); Serial.print("Gas detect alarm"); lcd.clear(); lcd.setCursor(1,0); lcd.print ("Exhaust fan :- ON"); lcd.setCursor(2,2); lcd.print("Gas Level Exceed"); lcd.setCursor(2,3); lcd.print("SMS Sent"); delay(1000); digitalWrite(buzzerPin, HIGH); digitalWrite(relay, HIGH); } else { Serial.print("Gas Level Low"); lcd.clear(); lcd.setCursor(2,3); lcd.print("Gas Level Normal"); delay(1000); digitalWrite(buzzerPin, LOW); digitalWrite(relay, LOW); } //lcd.clear(); } void SendMessage() { delay(1000); }
Contact Number
:-
+918830584864
2 Comments
Unknown
23 April 2021 at 23:17
Sir in the code where to put number phone
Reply
Delete
Replies
Reply
Anonymous
24 September 2022 at 22:23
In this code where I put mobile number for sms alert
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer
Older
GSM + GPS Based Vehicle Location Tracking System
Smart Shopping Cart using RFID and NodeMCU
Build Your Own Gps Tracking System using Arduino
Sign Language to Speech Conversion using Arduino With Flex Sensor
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Ultrasonic Sensor as a Counter with Arduino
RFID Based Automated Toll Collection System Using Arduino
Car Parking System Using Arduino
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
Automatic Fan Controlled Using Temperature Sensor
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
2 Comments
Sir in the code where to put number phone
ReplyDeleteIn this code where I put mobile number for sms alert
ReplyDelete