In the old days we would just solder a mercury switch to a couple of leads, seal with tar and mount them. o'course mercury is a bad word nowa days.