A spraying device (10) is described, the device comprising a housing (12) adaptedto receive a refill (16) of fluid therein and having an aperture (14) suitablefor permitting, in use, the spraying of a fluid therethrough, the device furthercomprising actuation means (24) configured for periodic actuation of the refill,wherein the device is provided with detection means (38) configured to distinguishbetween at least one area of lower magnetism (36) and at least one area of relativelyhigher magnetism (34) on a spray head (22) of said refill or within the area normallyoccupied by said spray head. Methods of operation of such a spraying device arealso described.