mpr121 - help reading filtered data

    nextsample = currenttime + sampleinterval;

Adding time values is not a good idea. Subtraction is guaranteed to work (as long as the interval is less than 49+ days). Addition is not.

There is a tutorial on the Sparkfun page. Have you looked at that?