For the potentiometer circuit