INICIO Diagrama de Flujo float temp = 0.0; int k1=6; int k2=7; float tmax=100 ; float tmin=15 ; int x=0; int y=0; lcd.begin(16, 2); pinMode(10, OUTPUT); digitalWrite(10, HIGH); pinMode(k1,INPUT); pinMode(k2,INPUT); lcd.createChar(0, cuadro); lcd.createChar(1, grado); x=digitalRead(k1); y=digitalRead(k2); NO temp>tmin &&temp<tmax lcd.setCursor(0,0); lcd.print("Alerta Fuera de Rango"); SI temp = (analogRead(0)*(5/1024.0)); temp = temp / 0.01; lcd.setCursor(0,1); lcd.print("T:"); lcd.print(temp); lcd.write(byte(1)); lcd.print("C"); delay(200); 6 1 2 6 1 2 temp > 23.00 SI lcd.setCursor(0,0); lcd.print("Temp: "); lcd.write(byte(0)); lcd.write(" "); NO y== LOW && x== LOW lcd.setCursor(9,1); lcd.print("SP1 OFF "); SI lcd.setCursor(9,1); lcd.print("SP1 ON "); Delay(200) temp > 27.00 SI lcd.setCursor(0,0); lcd.print("Temp: "); lcd.write(byte(0)); lcd.write(byte(0)); lcd.write(" "); NO y== LOW && x== HIGH lcd.setCursor(9,1); lcd.print("SP2 OFF "); SI lcd.setCursor(9,1); lcd.print("SP2 ON "); Delay(200) 5 3 4 3 5 4 temp > 31.00 SI lcd.setCursor(0,0); lcd.print("Temp: "); lcd.write(byte(0)); lcd.write(byte(0)); lcd.write(byte(0)); lcd.write(" "); NO x== LOW && y== HIGH lcd.setCursor(9,1); lcd.print("SP3 OFF "); SI lcd.setCursor(9,1); lcd.print("SP3 ON "); Delay(200) temp > 35.00 SI lcd.setCursor(0,0); lcd.print("Temp: "); lcd.write(byte(0)); lcd.write(byte(0)); lcd.write(byte(0)); lcd.write(byte(0)); NO y== HIGH && x== HIGH SI lcd.setCursor(9,1); lcd.print("SP4 ON "); Delay(200) lcd.setCursor(9,1); lcd.print("SP4 OFF ");