Analogue input used to disable an input

Oh ok, so I can read the motor on the analogue port and then read the switch after the motor signal has stopped.