int temperaturas[] = {25, 27, 22, 30, 28};
void setup() {
Serial.begin(9600);
}
void loop() {
int tempMax = temperaturas[0];
for (int i = 0; i < 5; i++ ) {
if (temperaturas [i] > tempMax){
tempMax = temperaturas [i];
}
}
Serial.print("Temperatura maxima ");
Serial.println(tempMax);
delay(10000);
}