The answer is MEMS - How an accelerometer works