Also see how to use the Potentiometer in dcaclab.
<iframe src="https://dcaclab.com/experiments/11971-dividing-voltage-using-potentiometer/iframe" width="560" height="410" frameborder="0"></iframe>
Cite: Sheikh, F. (2018). Dividing Voltage using potentiometer. DCACLab. https://dcaclab.com/circuits/11971-dividing-voltage-using-potentiometer