I ginned up a quick flow and can't test but I think this does what you need. You'll need to get the floats wired to a Pi pin and I don't know what those look like or which ones. I use a board that looks like what you have and it uses inverse logic (0) to activate pins. You'll need to sort that out I didn't use inverse logic on the output but I did account for the inverse logic on the floats. (again I think), I'm not a coder I'm a hardware guy by training so take this flow with that in mind.
[{"id":"6b6734f989360c42","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"14cee1b989ea917a","type":"comment","z":"6b6734f989360c42","name":"float A bottom","info":"","x":250,"y":140,"wires":[]},{"id":"df3075a8e9c8f45e","type":"comment","z":"6b6734f989360c42","name":"float B top","info":"","x":240,"y":300,"wires":[]},{"id":"d6446b1fcaecaed2","type":"rpi-gpio in","z":"6b6734f989360c42","name":"","pin":"23","intype":"tri","debounce":"25","read":false,"bcm":true,"x":250,"y":200,"wires":[["cfefdc08ed2e98e7"]]},{"id":"7dac2034729d6911","type":"rpi-gpio in","z":"6b6734f989360c42","name":"","pin":"18","intype":"tri","debounce":"25","read":false,"bcm":true,"x":250,"y":340,"wires":[["27fcc2d3c14d6bc6"]]},{"id":"a2104622be8e456d","type":"rpi-gpio out","z":"6b6734f989360c42","name":"","pin":"24","set":"","level":"0","freq":"","out":"out","bcm":true,"x":780,"y":260,"wires":[]},{"id":"3dfa1aee6a924783","type":"comment","z":"6b6734f989360c42","name":"to motor","info":"","x":780,"y":200,"wires":[]},{"id":"cfefdc08ed2e98e7","type":"function","z":"6b6734f989360c42","name":"Float A","func":"let A = msg.payload;\n\nif (A == 0){\n msg = {\n payload: 1,\n topic: A,\n }\n}\nif (A == 1) {\n msg = {\n payload: 0,\n topic: A,\n }\n}\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":200,"wires":[["68fea6eb23f07df8"]]},{"id":"27fcc2d3c14d6bc6","type":"function","z":"6b6734f989360c42","name":"Float B","func":"let B = msg.payload;\n\nif (B == 0){\n msg = {\n payload: 1,\n topic: B,\n }\n}\nif (B == 1) {\n msg = {\n payload: 0,\n topic: B,\n }\n}\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":340,"wires":[["68fea6eb23f07df8"]]},{"id":"68fea6eb23f07df8","type":"function","z":"6b6734f989360c42","name":"Pump Logic","func":"\nvar FloatA;\nvar FloatB;\nvar PumpOn;\n\nif (msg.topic == \"A\"){\n context.set(\"FloatA\",msg.payload);\n}\nif (msg.topic == \"B\") {\n context.set(\"FloatB\", msg.payload);\n}\n\nFloatA = context.get(\"FloatA\");\nFloatB = context.get(\"FloatB\");\n\nif (FloatA == 1 && FloatB == 1){\n //turn pump on\n PumpOn = 1;\n context.set(\"PumpOn\",PumpOn);\n}\n\nif (PumpOn == 1 && FloatA ==0){\n //turn pump off\n PumpOn = 0;\n context.set(\"PumpOn\",0);\n}\n\nlet Output = context.get(\"PumpOn\");\n\nmsg.payload = Output;\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":590,"y":260,"wires":[["a2104622be8e456d"]]}]