Temperature-compensated electrode