First click "Health" on the desktop.
Then click on "Health Data" below.
Select Fitness Data from the list.
Click "Steps".
Then you can see your own walking data.
The principle of Apple's mobile phone recording steps;
These tasks are completed by a collector (acceleration sensor) and a processor (sensor hub). The collector collects acceleration information and provides it to the processor for analysis.
At present, Apple phones and some Android phones with iPhone 5s and above have integrated this framework for collection and analysis. External devices, such as sports bracelets, also collect and analyze data based on a similar framework, and then transmit them to mobile phones via Bluetooth.