I am experiencing an issue where the float switch turns on unexpectedly, even when there is no water present, and then quickly turns off again. Currently, I am using two 4.7-ohm resistors in series at the ground side, rated at 1/4 watt. Can you tell me what type of resistors you are using? I don’t know more about Microcontroller My Code is as below.
binary_sensor:
binary_sensor:
- platform: gpio
id: float_switch
name: Float Switch
pin:
number: GPIO4
mode: INPUT_PULLUP
inverted: False
filters:
- delayed_on: 25ms
- delayed_off: 25ms
- platform: gpio
id: float_switch1
name: Float Switch UP
pin:
number: GPIO12 #D6
mode: INPUT_PULLUP
inverted: False
filters:
- delayed_on: 25ms
- delayed_off: 25ms