Gas leakage controller using Arduino
Gas leakage controller using Arduino
// Pin connections
Buzzer
// Fan relay
pinMode(gasSensorPin,
INPUT); pinMode(buzzerPin,
OUTPUT);
pinMode(resetButtonPin,
INPUT_PULLUP); pinMode(fanRelayPin,
OUTPUT); myServo.attach(servoPin);
communication
void loop() {
if (digitalRead(resetButtonPin) ==
LOW) { resetSystem();
delay(200);
final code)
alarm
// Reset function
Flowchart of Operati on
G a s Detected
1 The gas sensor detects a leak and sends a signal to the
Arduino.
Trigger A l a r m s
2 The Arduino activates the buzzer and LED to alert users of the
gas leak.
V alve Closure
3 The servo motor closes the gas valve, preventing further
gas fl ow.
Fa n Acti vati on
4 The fan activates to disperse the leaked gas and minimize its
concentration.
Advantag
es
Early Detection Automated Response Cost-Effective a n d Reliable
The system's prompt Automated response reduces The system utilizes readily
detection capabilities help human risk and ensures available components, making
prevent accidents and ensure immediate and effi cient it cost- eff ective and reliable.
timely action. mitigation.
Scalable Applications
This system can be scaled and adapted for diverse applications in homes, businesses, and
industries.
Application
s