Control of fire-fighting equipment comprising an outlet device containing a sensor, or itself being the sensor, i.e. self-contained sprinklers {with an explosive charge}