Analogue input used to disable an input

Yes I need the switch to totally be disabled or ignored while the motor cycle is running.