Yes, Like I said on the 18th, "...of course, there is also the old standby. A small float connected to a switch that activates a relay."
This is much simpler to do. And you do not have to use metal parts for the float as Steven has indicated.
Good luck with your project!
MP