Many shock sensors are a small coil spring (conceptually, like the spring in a ball point pen) that is fixed on one end and can pivot 360 degrees at the other end, surrounded by a ring. Simple electrical contact, stiffness of spring equals activating force.