snowman, think of this sort of project as having two circuits: One low-voltage circuit between the float switches and the relay coil to turn the relay on and off. Then, a separate circuit between the switch in the relay and the device you want to control.
One way to rig this is to use the same power source (voltage) for both circuits. Another way is to use a low-voltage source (i.e. 12v) for the float switches and relay, then use a wall outlet for the side including the device you want to control. See the schematics in the link I posted above - that's how they are configured.
As far as matching things, you need to match the voltage on the float switch side to the control voltage rating on your relay (for instance, the relay might be rated to be controlled by a 12v signal.) Then, you need to match the device you're controlling (i.e. solenoid, pump, etc.) to the power source used on that side of the circuit.