An infusion pump for infusing fluid from a reservoir into a body of a user, the infusion pump comprising: a housing; a drive mechanism including a motor and one or more drive components (404, 405) contained within the housing and operatively coupled to the reservoir to deliver fluid from the reservoir through a fluid path into the body of the user; one or more electronic components to take a series of measurements of a parameter associated with the motor or one of the drive train components for measuring increased reservoir pressure indirectly; and a controller contained within the housing, wherein, after each measurement in the series of measurements is taken, the controller performs a comparison between the measurement taken and a predetermined threshold value before the next measurement in the series of measurements is taken, wherein, if the comparison indicates that the measurement taken is less than the predetermined threshold value, the controller determines that there is no occlusion, wherein, if the comparison indicates that the measurement taken is greater than the predetermined threshold value, then an additional measurement of said parameter is taken, up to a predetermined total number of measurements, and wherein, if the additional measurement is greater than the predetermined threshold value and the predetermined total number of measurements has been reached, the controller: (a) calculates a weighted average of the total number of measurements, (b) compares the weighted average to a comparison value, and (c) determines whether an occlusion has occurred in the fluid path of the infusion pump by determining whether the weighted average is greater than the comparison value; characterised in that the controller determines a drive count of the motor; determines a drive count value based on the drive count of the motor, and calculates the comparison value by multiplying the drive count value by a predetermined conversion value; and wherein the predetermined conversion value is calculated from a formula including at least one factor selected from the group consisting of current, time of powering the motor, drive count, coast count, and standard deviation of force readings. a housing; a drive mechanism including a motor and one or more drive components (404, 405) contained within the housing and operatively coupled to the reservoir to deliver fluid from the reservoir through a fluid path into the body of the user; one or more electronic components to take a series of measurements of a parameter associated with the motor or one of the drive train components for measuring increased reservoir pressure indirectly; and a controller contained within the housing, wherein, after each measurement in the series of measurements is taken, the controller performs a comparison between the measurement taken and a predetermined threshold value before the next measurement in the series of measurements is taken, wherein, if the comparison indicates that the measurement taken is less than the predetermined threshold value, the controller determines that there is no occlusion, wherein, if the comparison indicates that the measurement taken is greater than the predetermined threshold value, then an additional measurement of said parameter is taken, up to a predetermined total number of measurements, and wherein, if the additional measurement is greater than the predetermined threshold value and the predetermined total number of measurements has been reached, the controller: (a) calculates a weighted average of the total number of measurements, (b) compares the weighted average to a comparison value, and (c) determines whether an occlusion has occurred in the fluid path of the infusion pump by determining whether the weighted average is greater than the comparison value; characterised in that the controller determines a drive count of the motor; determines a drive count value based on the drive count of the motor, and calculates the comparison value by multiplying the drive count value by a predetermined conversion value; and wherein the predetermined conversion value is calculated from a formula including at least one factor selected from the group consisting of current, time of powering the motor, drive count, coast count, and standard deviation of force readings.