Rutine for utkobling av detektorer