The paper deals with the design of an automated measuring and error detection system integrated into the turning machine. The experimental measuring device is based on a laser sensor with data transfer to the PLC control system. The main advantage of the designed experimental system is the possibility of measuring during the whole production process. The start position for the next product turn is indexed by a binary index laser sensor. The acquired data are transferred to the PC by TCP protocol for the next visualization and basic data representation. Data are stored locally in CSV format for the next knowledge extraction. Stored data is transferred after averaging to the Cloud Platform and can be used as an alarm system for production machine maintenance prediction.