Page 100 - Proyecto
P. 100
lif (gas >= 323 && gas < 511){
digitalWrite (am, LOW);
digitalWrite (ve, HIGH);
digitalWrite (ro, LOW);
lcd.setCursor(2,0);
lcd.print("led verde");
lcd.setCursor(2,1);
lcd.print(gas);
delay (400);
lcd.clear();
}
if (gas > 512){
digitalWrite (am, LOW);
digitalWrite (ve, LOW);
digitalWrite (ro, HIGH);
lcd.setCursor(2,0);
lcd.print("led rojo");
lcd.setCursor(2,1);
lcd.print(gas);
delay (400);
lcd.clear();
}
}
95