The function of the oxygen sensor is to sense oxygen content in the exhaust gas. The Powertrain Control Module (PCM) uses this input to optimize the combustion process.
A rough-running engine, poor fuel economy, or a “Service Engine Soon” light illuminating are all alerting cues that professional assistance is needed.