A. Ensure that the app's settings allow for wake-up detection. Go to the app settings and check if the 'Detect Wake Up' feature is enabled. If it is not, enable it to allow the app to register when you wake up during the night.
B. Try recalibrating the app by restarting your phone and the app. This can sometimes help the app better recognize your sleep patterns.