The reaction is basically CH2O+O2=CO2+H2O when petroleum (organic) compounds are reacted in surface conditions (in the presence of air). This means that oxygen is used to oxidize the organic compounds and generates CO2.
O2 will decrease and CO2 will increase as the reactions proceed.