Add sensor , remove / filter bad values data

I’ve been using a sensor from the Tellstick platform,
and I’ve encountered an issue with erratic data readings. For instance, the sensor might report a temperature of 5°, and then suddenly jump to -51° without any apparent reason.

I was wondering if anyone has experience or suggestions on implementing a filter to weed out such large and unrealistic differences in data.