Help with LEDs on model railway project

http://www.train-tech.com/index.php/lighting/interior-coach-lighting

Somebody somewhere else suggested these lights might be being triggered by an accelerometer sensor.

I'm wondering would this be a suitable module for the task? Or could it literally just be a chip?

I was looking at these modules..

https://makershop.ie/GY-521