Aquarium controller with a debounce on the temperature sensor

JayMan:
When a wave makes the float go up and down, I do not want the pump to trigger. My aim is when the float is moved to the opposite state of normal, it must be there for a set amount of time before the relay is activated to turn the pump on.

Then sample more often and count "active" readings. Reset the count any time an "inactive" reading occurs. Trigger the pump and change the state whenever the count exceeds a threshold.