The invention relates to a medical device for infusion of an active ingredient or removal of a body tissue or body liquid comprising: a outlet device for infusion of an active ingredient to a body tissue a receptacle for storing the active ingredient to which the outlet device is attachable a sensor device for measuring a parameter which is related to a physical state in the body tissue a drive device for effectuating at least an infusion of the active ingredient characterized by a control unit functionally connected to the sensor device for receiving a sensor signal, which corresponds to the state of the body tissue, wherein the control unit is adapted for controlling a flow rate.