O2 sensor simulation