You can also use hall effect sensors, similar to reed switches but no mechanical parts and no switch bounce if you use one with inbuilt schmitt trigger.
Rob
You can also use hall effect sensors, similar to reed switches but no mechanical parts and no switch bounce if you use one with inbuilt schmitt trigger.
Rob