A PID (Proportional-Integral-Derivative) controller is a feedback loop that adjusts an actuator to reach and maintain a target setpoint. Examples: a thermostat maintaining room temperature, a cruise control maintaining speed, a robot arm maintaining precise position, a drone's altitude controller. The controller measures the current state (sensor input), calculates the error (target - actual), and computes three correction terms: