Do you need to controll the VFD dynamically?Then you need a controller which has analog input and output module. Such as PLC.
The potentiometer and pressure sensor connect to the controller's input terminals, and its output terminal connect to the VFD‘s analog input terminals.