A control system for an internal combustion engine having a plurality of cylinders and a switching mechanism for switching between an all-cylinder operation in which all of the plurality of cylinders are operated and a partial-cylinder operation in which at least one of the plurality of cylinders is halted. The atmosphere-side electrode is disposed in an atmosphere layer that communicates with the atmosphere. A resolution of an analog-to-digital converter may be controlled based on the measured signal strength.