1. On the mobile phone, there will be an acceleration sensor and a gyroscope. It was originally used to monitor the direction of a mobile phone. For example, it can display different pictures in portrait or landscape mode. At present, this kind of sensor can be used to monitor the steps and distances we walk.
2. The newly-launched iPhone6 model has added a barometer, which can be used to monitor our current altitude.
Based on a series of sensors built into iPhone, we can use them to detect whether we are resting or exercising.