I have a power connection going from a button outside of my house to the doorbell box. I want to take a branch of this wire, and connect it to a raspberry pi to detect the button being clicked.
The question is: is this possible? And if it is, how can I connect my 220V power as an "input" to my Pi? I'm very new with electronics and I'm just getting started.