The optical heart rate sensor can be used during advanced sleep monitoring as long as you enable the optical heart rate sensor before you go to sleep. Make sure the Garmin Connect app is up-to-date and make sure you wear your device at least two hours before bedtime and two hours during sleep.