How to set up sleep features in the Health app?

How to use and disable Sleep mode?

How to view your sleep history?