how to ignore data inputs ADXL 345

Hi guys,

Im quite new to all this coding stuff, so bear with me.

basically, I have set up my ADXL345 as a sensor on a motorbike, however every time I initiate the alarm, the initial readings are 511, way over the thresholds set.

Simply put, I need a way of ignoring the first 10 readings, or having an arming period of say 5 seconds.

Any help would be great.

Thanks,

steve

having an arming period of say 5 seconds

delay (5000);

Posting your code of what you have allready helps us to understand the issue.