Yeah, so i went through your posts one more time, :-)
and i think the wiring is not right. One end of the floatswitch should go to GPIO pin (sensor) and the other end of the float switch should go to a 3.3 v or 5v power rail. You should connect a 4.7k (or 10k) resistor from the 5v- floatswitch pin to GND.
https://raspberrypi.stackexchange.com/questions/34947/reed-switch-wiring
and i think the wiring is not right. One end of the floatswitch should go to GPIO pin (sensor) and the other end of the float switch should go to a 3.3 v or 5v power rail. You should connect a 4.7k (or 10k) resistor from the 5v- floatswitch pin to GND.
https://raspberrypi.stackexchange.com/questions/34947/reed-switch-wiring
