Good grief! Did you even try?
Here - http://www.melevsreef.com/plumbing/auto_topoff.html
I like where he says - "I use an electrical float switch that can be purchased online for $6 plus shipping."
Marc suggested - http://www.aquahub.com/store/ifloatfloatswitch.html
There, now I have done all the work for you.