Described is drug infusion device configure to maintain its intended drug delivery rate by monitoring atmospheric effects. 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.