Added Potentiometer code