Controlling isolated 0-5V

Presumably the motor controller is not cleanly isolated from the mains supply, hence the isolation requirement for the potentiometer.