An insulin pump and an infusion set adapter having a membrane which can be acted upon by a liquid flow path associated with the pump, wherein the pump comprises a sensor by which a change in shape or location of at least a portion of the membrane caused by a change in the liquid pressure in the flow path can be detected in a contact-free manner to identify an occlusion in the flow path.