Apple's built-in Sleep app is free and tracks sleep duration, but there are other paid apps that have even more sleep tracking features.
When you set up an Apple Watch, you'll need to pair it with an iPhone and make sure that you have a stable internet ...