When a pneumothorax or a pleural effusion develops, the air or fluid has to be taken out. If it’s not taken out, it can become life-threatening. Doctors use x-ray, CT or chest ultrasound to find out how much air or fluid is around the lungs.