new code for the reed switches