A filter is a useful tool for removing unwanted signals from a sensor measurement. There is complicated math behind how they work, but you just need to know a simple formula to use them in many embedded designs.