If you are having trouble sleeping or want to improve your sleep, a sleep monitor may help your situation. While a 6-lead EEG that you would wear during a sleep study is the most accurate way to determine your quality and quantity of sleep, consumer-grade sleep trackers are accurate enough to give you ballpark numbers on your sleep.
You can start with a Fitbit (Apple Watch battery isn’t robust enough for monitoring all night). The best is to use a non-wearable sleep tracker so that you do not have to wear or remember to do anything.
https://amp.businessinsider.com/best-sleep-tracker
https://www.nosleeplessnights.com/best-sleep-tracker/
I found that adjusting the thermostat down 5 degrees Fahrenheit at night helps from waking up in the middle of the night.
Also, if you want 8 hours of sleep, it means you need to be in bed for about 9 hours.