A particulate matter sensor measures the amount of soot in the exhaust gases, while an oxygen sensor measures the amount of oxygen in the exhaust gases to help the ECM adjust the air-fuel mixture.