Arduino-PIDController-Library
An inline C wrap for this Github project. Should be able to use it for PID control. It works very well.
Study the code - change your pins to what you need. For the attached project:
A0 =...
Study the code - change your pins to what you need. For the attached project:
A0 =...