A turbine of a turbocharger is disposed on an exhaust passage. An air-fuel ratio sensor is disposed downstream of and in proximity to the turbine. An element of the air-fuel ratio sensor is positioned on or near the axis of an exhaust port of the turbine. A whirling flow of an exhaust gas in the same direction as a turbine wheel rotates is produced immediately after the exhaust port of the turbine, so that the whirling flow of the exhaust gas can centrifuge condensed water in the exhaust gas. The exhaust gas contacts the element near the axis of the exhaust port where there is substantially no condensed water, thus preventing the element from being wetted with water or cracked.