Self balancing robot help adding potentiometers for pid

Thanks. I understand pots to control simple output.
Need to know for pid manual adjust where to insert the pot in the wiring and code.