Needing better averaging code for pressure sensor

Ok Guys! All great stuff and I want to learn more. I will get the info you asked for Koepel!

Here is what I did, I tried your suggestions on dampening the pulsations. I used a small RC Fuel filter and stuffed it with cotton. I put it right after the T fitting on the line to the pressure sensor. The reason I used a small fuel filter is it has a small screen and I didn't want any cotton fibers finding its way to the pressure sensor. It took 99.9% of the pulsing away. I get pretty good steady readings no lag time on the reading, very responsive and great repeatability.

I would still like to understand smoothing for my particular situation, great learning lesson.

I sincerely appreciate the help!
Kevin

dubq0620.jpg