I am trying to create a smart doorbell, but my problem is that doorbell makes ring any time when nobody touch the button.
I think that the problem is caused for the incorrect way to connect the analog wall button to arduino GPIO.
Basically my wiring diagram is:
Analog Input (A0) to 1 pin of the button. Ground of the Arduino (GND) to the other pin of the button.
When the button is pressed, the circuit is closed, and doorbell makes ring!
But surely this is not the way to connect a button on the wall because the doorbell sounds on its own.