This is a simple solution to mount your sharp IR distance sensor directly to your circuit board. Works for sharp distance sensor model: GP2Y0A21YK
http://www.sharpsma.com/Webfm_Send/1208 I like to use M1.91 Torx plastic thread forming screws for fastening:
http://www.mcmaster.com/#99397a066/=12cask0I'm sure lots of screws will work, but thats what I use. You may download this if you wish to print it yourself. Please consider supporting me and my open-source designs on Patreon.
https://www.patreon.com/seanhodgins