A shock detector is a device that can detect when something is moving or shaking quickly. It's like a tiny alarm that senses when the object it's attached to is moving around too much. It can be used to detect if something is being dropped, or if it's bouncing around in a backpack.