A potentiometer is a three-terminal resistor with a sliding or rotating contact that forms an adjustable voltage divider.