Filtering only big changes (Processing)

what did you mean by "the sending code"

The Arduino is NOT sending code. It is executing some code that is sending data. We need to see that code to see HOW it is sending data. You can NOT expect to be able to deal with the data that is sent if you don't know what is being sent.