wireless monitoring system of gas detector - Faculty of Electrical ...
wireless monitoring system of gas detector - Faculty of Electrical ...
wireless monitoring system of gas detector - Faculty of Electrical ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
38<br />
void setup()<br />
{<br />
Serial.begin(9600);<br />
pinMode(ledgreen, OUTPUT);<br />
pinMode(ledred,OUTPUT);<br />
pinMode(ledyellow,OUTPUT);<br />
}<br />
Figure 3.15 : Declaration <strong>of</strong> the pin<br />
Meanwhile, the second loop is mostly the main process for the alarm <strong>system</strong><br />
trigger. All the threshold value is declared in this loop. First <strong>of</strong> all, the <strong>system</strong> read the<br />
sensor value as shown in Figure 3.16. If the sensor value is over or under the limitation<br />
<strong>of</strong> threshold value, some indicator as the output <strong>system</strong> will be turning on. Finally, the<br />
result from the sensor value will be print to the serial monitor. The flow chart <strong>of</strong> the<br />
programming show in the Figure 3.13.