Needing better averaging code for pressure sensor

Why does it look better on the oscilloscope? It also helps with some of the fluctuation of the readings.

I can post scope pictures tomorrow when I have time.

Is it possible to invert the pulsulting off of the pressure sensor then mix that signal back in with the original for 180 degrees out of phase and cancel the pulsating, or will it cancel out the voltage from the sensor?