A compensator is a component in the control system and it is used to regulate another system. In most of the time, it is done by conditioning the input or the output to that system. There are three types of compensators: lag, lead and lag-lead compensators.