An apparatus including a first cartridge, a sensor, and a controller. The first cartridge can include a first release de- vice configured to release a first substance into a housing. The controller can be configured to receive data from the sensor. The controller can determine an amount of first substance released by the first cartridge based on the data. The first release device can be controlled based on the determined amount of first substance.