A control system is a system of integrated elements whose function is to maintain a process variable at a desired…