A method for compensating for a temperature-related error in an electrochemical sensor without using separate sources of temperature measurement by measuring sensor current, temporarily lowering sensor voltage to a first level below a reaction-sustaining threshold, measuring a first offset current, adjusting sensor voltage to a second level below the threshold, measuring a second offset current, calculating a difference between the offset currents, deriving a temperature compensation value from the difference based on empirical data, and adding the value to the measured sensor current. A computer system may execute the method as an algorithm stored in memory, provide automatic control of the sensor, and provide continuous display of corrected output values.