Apple Watch includes a built-in sleep tracking feature. Just wear your Apple Watch to bed, and it works automatically.