EEPROM problem

Thanks Mr. johnwasser,
You are right. But my requirement is to keep the led1,2,3 OFF and pumpled1 ON at first instant.
As per my first code, but I like your code which is more clean, short and meaningful. How do I change
it to meet my requirement ? Actually, I was using my code to start and stop the water pump automatically and see the water level. Then I felt the necessity to use the EEPROM to co-up with the power failure factor.