Try to learn j4velin's code on Pedometer. Cloned from https://github.com/j4velin/Pedometer.git