Not having looked the file, I assume you would want to make a deadzone threshold that cuts off the movement behaviour.
Store the tilt values at the end of each frame, compare the current tilt values with the previous frame tilt values and unless the difference is greater than a certain amount, don't update the rotation or store the new tilt values.