Protect a door or window with magnetic open/close detection, four-level shock sensing, and a third external contact input in one wireless sensor.