The temperature is adjusted by re-scaling the velocities. How you exactly do it, e.g. which parameters to set, depends on the exact program you are using - consult the manual or search the web for a tutorial
e.g. https://manual.gromacs.org/documentation/2018/user-guide/mdp-options.html#temperature-coupling