When you buy a good and branded smartwatchsmart watch, it comes with the feature of sleep tracking. It detects the changes in your heart rate when you fall asleep and monitors your sleep level, like for how long you've been asleep or how often did you get up etc.