Detecting crossed lines with color sensor