Sleep as Android measures your sleep using various sensors. You can use sensors that are in your phone, or purchase additional devices and use their sensors, or use a combination.
This is a companion discussion topic for the original entry at https://docs.sleep.urbandroid.org//sleep/sensors.html