I use outputs D1 (with a led to indicate the correct connection to the local WIFI), D2 and D3 as dry contact inputs.
Near the board there are circuits with high current: doorbell, push buttons of a remote switch, switch on a light. The activation of one of these "switches" triggers one of my inputs and sends a command (involuntary) to the automatism. I suppose that it is an induction caused by the passage of the current with 230V near an input of 3V at the output of ESP.
How to avoid this interference?
Here are the libraries used and the declaration of the ESP inputs/outputs:
#define PIN_LED_RED 5
#define PIN_BUTTON_OPEN 0
#define PIN_BUTTON_CLOSE 4[/i]
What's the best we can do?
Thanks in advance for your help ...