Hooking the arduino into the reed switch of an electronic device