A potentiometer has 3 pins. Two terminals (the blue and green) are connected to a resistive element and the third terminal (the black one) is connected to an adjustable wiper. The potentiometer can work as a rheostat (variable resistor) or as a voltage divider.