Wire a simple mechanical tilt sensor that acts as an on/off switch when an object's orientation changes, with no calibration needed.