You can rig something yourself with a toilet float mechanism. It would be a LOT more compact, and probably not very much more expensive, to just buy the purpose-made thing and be done with it.
Be aware, though, that a) it won't work reliably during the wintertime, because the feed line will...