Modified line detection so that both sensors can operate.