All I want to do is make a reed switch open and close

Are you getting the log from the device or agent? Some code would help a lot to understand what you are doing.