Which method do you pick for filtering the sensor input. In real-life that is done by:
0. Software. Benefits: easier, faster, less soldering, less money for components. Downside: more programming, more understanding.
1. Hardware. Benefits: less programming, only connect the circuit, works if the MCU is damaged, needed for some special environments perhaps. Downside: more components, more soldering, more testing, higher chance of problems with the capacitors, more money.