The oxygen sensor is a separate component from the oil system and works by measuring the amount of oxygen in the exhaust gas to help control the air-fuel mixture. If you're experiencing issues with your oxygen sensor after an oil change, it is more likely due to a coincidence or another unrelated factor.