accelerometer tracking every 5 seconds in a service. comments inside to show how to initiate and where to sync to firebase