C/C++ multi-threaded code for PID temperature controller and logger with Teensy 4.1 microcontroller
P = Proportional (How fast the system responds)
I = Integral (Used to remove steady state error)
D = Derivative (Used to speed up the response of the system)
Derivative can add noise to the system
Set I and D to zero then tune P
Tune I when satisfied with P controllers response
D can be left at 0 if a PI controller is suitable for your needs
https://www.youtube.com/watch?v=zOByx3Izf5U
https://github.com/pms67/PID
Multithreading library by Fernando Trias https://github.com/ftrias/TeensyThreads
Adafruit PT100/P1000 RTD Sensor w/MAX31865 library by Limor Fried/Ladyada @ Adafruit Industries