How to integrate hardware/embedded button with LEGO? I have two different buttons B3F-1000 and  3a250vac switch which i want to integrate into a lego &quot;machine&quot; which i'm powering with an arduino. Since the rest is integrated into lego plates, i also want the same for buttons, which means they need to be covered in lego, but still fit with the rest, which means no glue.
Looking for suggestions on how to attach lego parts in a way so the user pushes a lego part and it is registered by the button.  Its a very tiny range of press, so it doesnt need to move much in the press, and its not a toggle button, which means every press will feel the same.
Picture with two common parts for scale.
For the first switch I bent the legs of the button and splayed them out just a little bit.

Next I stripped off the caps of two Dupont connectors, ran them through the headlight bricks and connected the button upside down.

An axle will trigger the button. Either one with a stud on one end (and a 1x1 tile) or a regular one with a half bush.

A 2x2 brick on top serves as a button.

The second switch is a hacked light brick. They're very inexpensive on bricklink.

I took out the batteries and the LED (they're not soldered as they're meant to come apart) and replaced the one on the right with a metal contact.
For that I took a paper fastener, cut off one of its legs and bent it in an e shape.