My mom has a pedometer from 2013, I think. It can detect steps fairly well and it does not react to shaking. I tried to shake the pedometer as if I’m walking and it recorded nothing.
I have a Xiaomi smart watch and sometimes when I roll around in my bed it detects the movement as walking and adds ~20 steps.
How can a pedometer distinguish walking from shaking?