The primary focus of enhancing the efficiency of operations in the Industry 4.0 setting is Predictive and Preventive Maintenance (PPM). The paper introduces a predictive-maintenance system based on the Unified Namespace (UNS), which involves real-time sensor measurements, photogrammetry, and modeling of a digital twin to improve fault prediction and responsiveness to maintenance. This experiment was conducted over six months in a medium-sized discrete electromechanical production plant equipped with motors, Variable Speed Drives (VSDs), robot/cobots, precision grip systems, pipework systems, Magnemotion/linear motor drives, and a CNC machine. The continuous data, such as high-frequency vibration, temperature, current, and pressure, were monitored and analysed with machine-learning models, including support-vector machines, gradient-boosting, long-short-term memory, and Random Forest, through which temporal degradation can be predicted. UNS architecture integrated all sensor and imaging data into a vendor-neutral data model through OPC UA to help ensure that all experiments could be integrated consistently and be updated in real time to real digital twins. The suggested system correctly identified mechanical and electrical failures and predicted failures before they really took place. Consequently, machine downtime was reduced by 42.25, and Mean Time to Repair (MTTR) by 36, which was mainly caused by a previous anomaly detection and pre-inspection supported by a digital-twin. Altogether, the paper proves that the integration of UNS with multi-modal sensing and digital-twin technologies will greatly enhance predictive maintenance. The framework provides a data-driven, scalable solution to organisations that aim to modernise their maintenance processes, attain greater reliability and better equipment utilisation, as well as enhanced Industry 4.0 preparedness.