I have been struggling & trying for months

I'm 23 years old . I have been struggling & trying for months to have a baby . This past week I had recently had a miscarriage. I was 12 weeks into the pregnancy. I just found out I lost my babies . But I been trying to have a baby ! What is some good tips to have A healthy baby ? Someone please help !