if(percent > 50){
digitalWrite(Pump, HIGH);
delay(1);
if(percent > 50){
digitalWrite(Pump, LOW);
delay(2700000);
}
}
Explain what how you think the logic of that works.
Why does it have two "if"s, when one would work just as well.