Electronic contact thermometer