The disclosure relates to method of controlling a product contained in a container device, the method comprising, when the container device is arranged in a housing (101), receiving at least one signal from a sensor module (104), said signal representing an attribute related to the product contained in the container 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.