Carbon dioxide is used in the light-independent reactions. It combines with NADPH and ATP and various other chemicals (such as Ribulose Bisphosphate) to form glucose. Therefore, if there is not enough carbon dioxide, then there will be a buildup of NADPH and ATP and not enough glucose will be formed.