A method of controlling a product contained in a container device such that it is detected whether the product contained in the container device is in a suitable status to be used wherein the product is a drug, wherein the container device is a drug delivery device, the method comprising, when the drug delivery device is arranged in a housing: - Receiving at least one signal from a sensor module, said signal representing an attribute related to the drug contained in the drug delivery device, said sensor module being associated with the housing; - Determining if the attribute represented by the signal received from the sensor module is a warning attribute; - if the attribute is a warning attribute, generating at least one trigger signal to be received by at least a warning module configured to generate a warning based on the trigger signal, wherein the received signal representing an attribute related to the drug contained in the drug delivery device comprises a signal representing a physicochemical characteristic of the drug, and wherein: - determining if the attribute represented by the signal received from the sensor module is a warning attribute comprises determining if the physicochemical characteristic of the drug contained in the drug delivery device is outside an established range, characterised in that , ∘ if a value of the physicochemical characteristic represented by the signal provided by the sensor module is outside the established range, determining that the status of the drug is not suitable for use. - Receiving at least one signal from a sensor module, said signal representing an attribute related to the drug contained in the drug delivery device, said sensor module being associated with the housing; - Determining if the attribute represented by the signal received from the sensor module is a warning attribute; - if the attribute is a warning attribute, generating at least one trigger signal to be received by at least a warning module configured to generate a warning based on the trigger signal, wherein the received signal representing an attribute related to the drug contained in the drug delivery device comprises a signal representing a physicochemical characteristic of the drug, and wherein: - determining if the attribute represented by the signal received from the sensor module is a warning attribute comprises determining if the physicochemical characteristic of the drug contained in the drug delivery device is outside an established range, characterised in that , ∘ if a value of the physicochemical characteristic represented by the signal provided by the sensor module is outside the established range, determining that the status of the drug is not suitable for use. - determining if the attribute represented by the signal received from the sensor module is a warning attribute comprises determining if the physicochemical characteristic of the drug contained in the drug delivery device is outside an established range, characterised in that , ∘ if a value of the physicochemical characteristic represented by the signal provided by the sensor module is outside the established range, determining that the status of the drug is not suitable for use. <EOS>