Submersible pump with float switch