Long wires and float switch problem

22uF is kind of large but it should work effectively. A more normal number would be 0.1uF or even as small as 22pF (0.000022uF)