How Can I Prevent Insomnia?
If your bedroom is too noisy or too bright, do what you can to create a quiet, dark environment with adequate ventilation and humidity. Excessively dry air can cause nasal passages to shrink and make you uncomfortable. Wearing earplugs and eye shades will help to keep out distractions.
If you're working nights and simply can't sleep well during the day, ask your employer about changing to a daytime job. A strategy that works for some people who must work at night involves installing lights much brighter than normal during the night shift and then wearing dark glasses as they go home and prepare for sleep. This helps to shift their circadian rhythms so they sleep better in the daytime and remain more alert at night.