A delivery device for delivering a medical fluid to a patient has a housing configured for receiving a container at least partially filled with the medical fluid. The delivery device further has a drive mechanism associated with the housing configured for delivering the medical fluid from the container to the patient in a dosing procedure. The delivery device further has a module configured for detecting at least one of a property of the dosing procedure and a property of the medical fluid. The module has at least one dose detection sensor configured for detecting an initiation, progression, and completion of the dosing procedure based on a position of a stopper within the container. The module further has at least one temperature sensor configured for measuring a temperature of the medical fluid within the container based on a temperature of the container.