A sensor and method of use provides for detection of an occlusion (or sudden pressure increase) in tubing during the administration of solutions to a patient. The occlusion sensor may be attached to an infusion pump using a biasing mechanism. The tubing may be positioned in contact with the occlusion sensor using a cassette. Detection of an occlusion in the tubing is accomplished by measuring the compression and expansion of the tubing. When the tubing becomes occluded pressure within the tube will increase, resulting in expansion of the tubing. Expansion of the tubing exerts a force on the sensor to trigger an alarm to alert medical personnel of the occluded tube.