A drug delivery device is provided that includes an on-board controller to determine when proper placement on the patient's body has occurred as well as an amount of drug delivered to the patient. The controller can also be used to determine if and when the proper placement has been disturbed during drug delivery and/or if less than a full dose of the drug has been dispensed.