Using minimum time button press to activate and deactivate a pump

Hi im very new to this arduino stuff and ive got a problem that i think that arduio could help me with??
So what I have is a water tank that fills up and needs emptied with a pump that has 2 float switches (max and minimum fill) so what i want to do is turn the pump on when the Minimum fill float switch is high and the maximum float switch is held high for 10 seconds (to stop the sloshing of the water just flicking the pump on and off) and for the pump to stay on until the Maximum fill float switch is LOW and the Minimum fill float switch is LOW for 10 seconds and the pump will turn off (again to stop the sloshing flicking the pump on and off), and the cycle repeats itself. Can this be done??

My first thoughts were to use a UNO and a relay board to control the pump.

Any advice on the programming would be greatly appreciated because im not sure how to program the minimum button/switch hold time??

Thank you for your time.

I'm not sure if HIGH means that the switch is activated - for example MIN switch HIGH = tank empty?

If you want to keep going for a few seconds after a switch is first triggered you just need to save the value of millis() when it is triggered and keep comparing the saved value with the latest value of millis() until the desired time has elapsed.

The demo several things at a time illsutrates the use of millis() for timing.

...R

Focusmad:
Can this be done??

Just to encourage you to continue, yes, this can be done and this is an appropriate use of an arduino.

When i mean the swich high and low i mean

Pump turned on when Low level switch is on and High level switch is on for 10 seconds,
Pump stays on Until,
Pump turns off when High level switch is off and Low level switch is off for 10 seconds

Hope this explains what im trying to accomplish??

Cheers