If you use the PID_v1 library you call pid.setOutputLimits() to set the limits of Output.
If you are writing your own PID loop you can use constrain(value, limit, limit) to restrict the value to the specified limits.
If you use the PID_v1 library you call pid.setOutputLimits() to set the limits of Output.
If you are writing your own PID loop you can use constrain(value, limit, limit) to restrict the value to the specified limits.