The Pid4j library consists of PID controllers that you can easily use in your project.