My question would be whether that motor controller is mains isolated - if not the potentiometer could be at mains potential.