GY-291 ADXL345 3-Axis Accelerometer Module for Arduino RPi ESP8266 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