I'm working on a project and has some trouble. I'm trying to scan when you push a button to higher a lift bridge. It works with a button like in the images below. Is there something to put between the button and the wires to capture when the button is pressed?



I need to keep it simple with the wires and installation.
Does domeone has an idea hwo to do this.
Thanks