A medical device has at least one electrode lead with at least one electrode pole that is configured to measure electrical potentials in human or animal tissue, and a measurement and control unit that is connected to the electrode lead. The measurement and control unit is configured to initiate measurements of the impedance via the electrode pole of the electrode lead. The measurements of the impedance have at least one individual measurement, an individual measurement occurring over a defined window of time.