ADXL345 GY-291 3-Axis Accelerometer Module for Arduino RPi ESP8266 Klipper etc

Activity and inactivity sensing detect the presence or lack of motion and if the acceleration on any axis exceeds a user-set level. These functions can be mapped to one of two interrupt output pins.

eBay