Handy post from Matt on Raspberry Pi Spy. Last month I bought myself a 3D printer. It uses standard micro-switches to register the position of the movable parts. I wanted to replace these with something less mechanical and someone on the support forum mentioned using hall effect sensors instead. Read more.