My child has been missing a lot of school and I got a letter

My child has been sick a lot and I got a letter in the mail from the school about them missing too much… idk what to do because I could get in serious trouble and because I didn’t provide doctor notes. They’re not excusing it… what can I do about this?? I cannot afford to take my child to their doctor for every small cough they get.