It can detect changes in elevation such as when you are climbing stairs

Could you correct the punctuation please?
It can detect changes in elevation, such as when you are climbing stairs.