Understanding the potentiometer

Hi, if you remember my last post, you probally saw my code already. I fixed all of the issues and we score one point. The only issue is I don’t understand the potentiometer as much as I want. Here is the code:

task autonomous()
{

	if(SensorValue[autoSelector] > 3000) //&& SensorValue[autoSelector] < breaks[0])
	{
		//FAILSAFE X.X
		Forward(1000);
		PivotLeft(125);
	}
	else if (SensorValue[autoSelector] > breaks[0] && SensorValue[autoSelector] < breaks[1])
	{
		//Red and Blue  next to skyrise pole
		Forward(2000);
		PivotLeft(500+1);
		Forward(2000);
	}
	else if (SensorValue[autoSelector] > breaks[1] && SensorValue[autoSelector] < breaks[2])
	{
		//Red and Blue not Next to skyrise pole facing towards other robot
		PivotRight(1700);
		Backward(1000);
		PivotRight(740);
		Forward(150);
	}
	else if (SensorValue[autoSelector] > breaks[2] && SensorValue[autoSelector] < POT_MAX)
	{
		//Red and Blue Next to skyrise pole facing at it
                //Placeholder :) :) :) :)

	}

}

Yes, I have used debugging before.