Added an example function testingAccelerometerData that prints the current pitch of the iOS device at a specified interval