A shock sensor is a device that detects sudden acceleration or deceleration. This type of sensor is often used in security systems to detect when a window or door has been broken. The sensitivity of the sensor can be adjusted to suit the needs of the application. For example, a more sensitive setting may be used in an area with high winds, while a less sensitive setting may be used in an area with low levels of vibration.