Work with a acelerometr