Connecting our magnetic contact sensor