Use the line sensor #1, and #7 to detect the cross junction. Once detected, change the screeen to "Green" colour.
Sensor #3 - Turn Left
Sensor #4 - Forward'
Sensor #5 - Turn Right
Sensor #2 detected --> Robot move forward for 0.3 second --> Robot Turn Left until Sensor #4 detected.
Sensor #6 detected --> Robot move forward for 0.3 second --> Robot Turn Right until Sensor #4 detected
Sensor #1 AND #7 detected the line --> Robot sound 'beep' and STOP.
Sensor #1 AND #7 detected the line --> Robot sound 'beep' and STOP.
Use the line sensor #1, and #7 to detect the cross junction. Once detected, STOP the robot and sound 'beep'.
Code the robot to turn left at the cross junction, follow the line, and at the cross junction (End), take the right left.
Once complete, make the robot to go to middle path and as well as right path.
Add a variable, to control the path taken during the cross junction.