Make sure that your sensor data excludes idle and incorrect records, which may take place at the beginning or end of your data collection session when you are setting up hardware.
Note
Good practice is to delete the first and last few seconds from the collected data. If you are unsure about the quality of data, plot a single axis, find incorrectly collected samples and remove them from data. The script performs this step automatically.