Samsung Health measures sleep through an automated tracking feature that starts working when once one puts down their device and turns in for the night, and it will usually start tracking someone’s sleep about 30 minutes after they have gone to bed.  Of course, the Samsung health measure of sleep rests solely on when the phone is put down, and if you have trouble sleeping after you stopped looking at your phone it will not be able to measure that.