When [Daniel Eichhorn] designed the Pendrive S3 project, he wanted to use an off-the-shelf USB enclosure but also add a button for the user to start certain actions. Drilling a hole into the enclosure would be an option, but decided a touch sensor on the top of the enclosure would be much more elegant — not to mention better at keeping dirt and moisture out. To bridge the 6.3 mm spacing between the PCB and the top of the enclosure [Daniel] used a small, 7 mm PCB-mounted spring.
This is a companion discussion topic for the original entry at https://hackaday.com/2024/05/22/using-a-spring-as-a-capacitive-touch-button/