A method for a dispensing device for at least one air treatment agent as well as a dispensing device is described herein, the dispensing device comprises: a housing having one or more walls to define an interior adapted to receive at least one removable container of air treatment agent at least partially therein and within said housing the device comprises: an airborne agent detector means operable to detect airborne agents in the air, wherein said means are provided with at least one aperture to the exterior of the device to permit, in use, air from outside of the device to enter said airborne agent detector means receiving means for receiving said at least one container of air treatment agentemanation means adapted, in use, to emanate the air treatment agent from the device through one or more exit orifices in the housing control means in communication with the emanation means and in communication with said airborne agent detector means characterised in that once a quantity of air treatment agent has been emanated from the device, in use, the control means prevents the airborne detection means from operating for a period of between 1 second to 30 minutes after emanation or, alternatively once a quantity of air treatment agent has been emanated from the device, in use, the control means is operable to ignore and/or dismiss signals from the airborne agent detector means for a period of between 1 second to 30 minutes after emanation.