I wonder if you can just hook these up directly as a GPIO binary sensor without the intermediate hardware similar to the door sensor set-up?