I am working on a delivery app that the company charges clients based on the number of stairs that the delivery agent has to climb. It's probable that the agent cheats and collects the stair fee in cash without reporting it to the company.
I wanted to know if there is anything that can help the app detect if the delivery agent has climbed any stairs or not.
Yes, you can. With an accelerometer and setting its threshold you may distinguish between walking and stepping up/down stairs (as long as the operator does not apply Tai Chi).