There is another type of float set up, much like that which is used for the back of the toilet.
There is a rod that has a float on it that is vertical and uses a modified pressure switch to control the pump that feeds the tank.
Look up Square D Float Switches.
Then there is the Mechanical level switch that has a bulb hanging off a rod that is either normally open or normally closed. Bulb up and pump is off and bulb down pump is on.