Taking steps to ensure a healthy pregnancy might prevent your infant from being born before his or her lungs have fully developed. These steps include: Seeing your doctor regularly during your pregnancy Following a healthy diet Avoiding tobacco smoke, alcohol, and illegal drugs Managing any medical conditions you have Preventing infections If youre having a planned cesarean delivery (C-section), your doctor can do tests before delivery to show whether its likely that your babys lungs are fully developed. These tests assess the age of the fetus or lung maturity. Your doctor may give you injections of a corticosteroid medicine if he or she thinks you may give birth too early. This medicine can speed up surfactant production and development of the lungs, brain, and kidneys in your baby. Treatment with corticosteroids can reduce your babys risk of respiratory distress syndrome (RDS). If the baby does develop RDS, it will probably be fairly mild. Corticosteroid treatment also can reduce the chances that your baby will have bleeding in the brain. 
How to prevent Respiratory Distress Syndrome ?