If there is an increased level of carbon dioxide in the atmosphere, the infrared radiation released by the Earth is absorbed and heats the atmosphere.
Carbon dioxide is a greenhouse gas, which means it can absorb and re-radiate infrared radiation. This process contributes to the greenhouse effect, resulting in warming of the atmosphere and influencing global temperatures.