Accelerometer Working Principle
The main working principle of an accelerometer is that it converts mechanical energy into electrical energy. When a mass is kept on the sensor which is actually just like a spring it starts moving down. Since it is moving down it starts experiencing the acceleration.