A method for identifying and cleaning contamination of a reference electrode of an electrochemical sensor, the electrochemical sensor comprising a housing, an electrolyte within the housing, a working electrode, the reference electrode, which comprises platinum, and a counter electrode, the method comprising: scanning the reference electrode a first time using a first cyclic voltammetry scan at a first scan rate before the electrochemical sensor has been employed, wherein the first scan rate is 0.1 Volts per second; generating a reference set of readings from the first cyclic voltammetry scan; scanning the reference electrode a second time at the first scan rate, using a second cyclic voltammetry scan similar to the first cyclic voltammetry scan, after the electrochemical sensor has been employed; generating a second set of readings from the second cyclic voltammetry scan; comparing the second set of readings from the second cyclic voltammetry scan to the reference set of readings to determine if a potential of the reference electrode has shifted; when the second set of readings is different from the reference set of readings, scanning the reference electrode a third time using a third cyclic voltammetry scan, at a second scan rate, to at least partially clean the reference electrode, wherein the second scan rate is 2 Volts per second; scanning the reference electrode a fourth time, using a fourth cyclic voltammetry scan similar to the first cyclic voltammetry scan; generating a fourth set of readings from the second cyclic voltammetry scan; comparing the fourth set of readings from the fourth cyclic voltammetry scan to the second set of readings; when the fourth set of readings is different from the second set of readings and moves closer to the reference set of readings after the scanning for the third time, determining that the potential of the reference electrode has shifted due to pollution of the reference electrode; scanning the reference electrode a fifth time in a fifth cyclic voltammetry scan, at the same rate as the third cyclic voltammetry scan, to further clean the reference electrode; and allowing the electrochemical sensor to return to a normal operating state before the electrochemical sensor is employed, wherein comparing the second set of readings with the reference set of readings comprises observing one or more peaks indicating oxygen reduction. scanning the reference electrode a first time using a first cyclic voltammetry scan at a first scan rate before the electrochemical sensor has been employed, wherein the first scan rate is 0.1 Volts per second; generating a reference set of readings from the first cyclic voltammetry scan; scanning the reference electrode a second time at the first scan rate, using a second cyclic voltammetry scan similar to the first cyclic voltammetry scan, after the electrochemical sensor has been employed; generating a second set of readings from the second cyclic voltammetry scan; comparing the second set of readings from the second cyclic voltammetry scan to the reference set of readings to determine if a potential of the reference electrode has shifted; when the second set of readings is different from the reference set of readings, scanning the reference electrode a third time using a third cyclic voltammetry scan, at a second scan rate, to at least partially clean the reference electrode, wherein the second scan rate is 2 Volts per second; scanning the reference electrode a fourth time, using a fourth cyclic voltammetry scan similar to the first cyclic voltammetry scan; generating a fourth set of readings from the second cyclic voltammetry scan; comparing the fourth set of readings from the fourth cyclic voltammetry scan to the second set of readings; when the fourth set of readings is different from the second set of readings and moves closer to the reference set of readings after the scanning for the third time, determining that the potential of the reference electrode has shifted due to pollution of the reference electrode; scanning the reference electrode a fifth time in a fifth cyclic voltammetry scan, at the same rate as the third cyclic voltammetry scan, to further clean the reference electrode; and allowing the electrochemical sensor to return to a normal operating state before the electrochemical sensor is employed, wherein comparing the second set of readings with the reference set of readings comprises observing one or more peaks indicating oxygen reduction.