Maximizing Energy Efficiency: The Role of Analog and Digital PID Controllers