Fix concurrent signal from switch and metal sensor