This paper presents the development and implementation of the autotuning PID controller and reviews the properties of PID as the basic control algorithm and of different PID tuning methods. The study delves into the original autotuning algorithm and its modifications, and proposes the introduction of the preliminary identification and use of dead time compensating controller within the autotuning framework. The author derives the procedure of the phase of preliminary identification and checks the extensions through simulation. The paper describes in detail the successful performance of the extended autotuning algorithm for various model processes and its implementation in an industrial PLC. The implemented autotuning PID controller was test...