Described is method for maintaining proper drug delivery rate by monitoring atmospheric effects on a drug infusion device. The device may include one or more vents that permit the passage of gas between the exterior and interior of the devices housing. The device may also include one or more pressure and/or temperature sensors, the readings from which may be used to determine malfunctions in the venting of the device and/or changes in pressure that could cause the unintended over-delivery or under-delivery of medication.