A medical device including an evaluation unit and an electrode line. The electrode line includes at least one temperature sensor. The temperature sensor delivers a temperature signal to the evaluation unit. The evaluation unit evaluates periodic fluctuations of a signal level of the temperature signal and generates an evaluation output signal qualifying constant wall touching of the electrode line according to whether periodic fluctuations of a signal level of the temperature signal lie below or above a predetermined limit value.