Float sensor help

hay there i am in need of help i have a flaot sensor connected to an esp for esp home
my float sensors used to work but they stoped and i dont know how to fix them so i
need your help

binary_sensor:
  - platform: gpio
    id: float_switch1
    name: Float Switch UP
    pin:
      number: 13
      mode: INPUT_PULLUP
      inverted: False
    filters:
      - delayed_on: 25ms
      - delayed_off: 25ms


Have you tested the sensor with a multimeter?
Have you swapped the wires?
Jump wires are usually not very resistant, at least the ones I can buy.

i think you where right with the cables witch is really weird because it always workt in the last 2 years but any ways thanks now i have to figure out how to extend all other cables without causeing this problem