0% found this document useful (0 votes)
26 views

Iot Project

Iot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Iot Project

Iot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

INDUSTRIAL SAFETY MONITORING

By Harini.M

1.BLOCK DIAGRAM:

2.CIRCUIT DIAGRAM:
3.PROGRAM CODE:

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Int V_GasSen = 0;
Int V_TempSens = 0;
Void setup() {
pinMode(A0, INPUT);
pinMode(A1, INPUT);
pinMode(7, OUTPUT);
pinMode(9, OUTPUT);
pinMode(12, OUTPUT);
lcd.begin(16, 2);
}
Void loop() {
V_GasSen = analogRead(A0);
V_TempSens = -40 + 0.488155 * (analogRead(A1) –
20);
Lcd.clear();
Lcd.setCursor(0, 0);
Lcd.print(“Temperature: “);
Lcd.print(V_TempSens);
Lcd.print(“ C”);
Lcd.setCursor(0, 1);
Lcd.print(“Gas: “);
Lcd.print(V_GasSen);
If (V_GasSen >= 250) {
Tone(7, 523, 1000);
digitalWrite(9, HIGH);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(“ALERT: Gas Detected”);
} else {
digitalWrite(9, LOW);
}
If (V_TempSens >= 70) {
Tone(7, 523, 1000);
digitalWrite(12, HIGH);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(“ALERT: Temp High”);
} else {
digitalWrite(12, LOW);
}
Delay(1000);
}

4.STIMULATION OUTPUT LINK:


https://www.tinkercad.com/things/dWhuSZ3dlw2-harini-
iot-project-/editel?returnTo=%2Fthings
%2FdWhuSZ3dlw2-harini-iot-project-
&sharecode=o_1w2mF8xqJVvD7bnFeNXMCKO80Ckwf
DKgMz_mzvSPM
2.CIRCUIT DIAGRAM:

You might also like