A method and system that enables a user to maintain a sensor in real time. The present invention involves performing a diagnostic Electrochemical Impedance Spectroscopy (EIS) procedure to measure sensor impedance value in order to determine if the sensor is operating at an optimal level. If the sensor is not operating at an optimal level, the present invention may further involve performing a sensor remedial action. The sensor remedial action involves reversing the DC voltage being applied between the working electrode and the reference electrode. The reversed DC voltage may be coupled with an AC voltage to extend its reach.