Consider keeping a sleep diary to track patterns and habits, such as what you eat, when you go to bed and wake up, and how you spend your time during the day. This can help you identify potential issues that may be impacting your sleep quality.
In terms of establishing a bedtime routine, try creating a relaxing pre-sleep ritual that signals to your brain that it's time to wind down, such as reading a book or taking a warm bath.
It's also important to create a sleep-conducive environment by making sure your bedroom is dark, quiet, and at a comfortable temperature. Invest in blackout curtains, earplugs, or a white noise machine if necessary.
As for avoiding screens before bed, try to limit screen time to at least an hour before bedtime, and consider using blue light filtering glasses or apps that filter out blue light from devices.
Regarding heavy meals close to bedtime, aim to finish eating at least 2-3 hours before going to sleep to allow for proper digestion and to prevent discomfort during the night.