In the modern world, small and medium scale manufacturing industries face a lot of challenges to achieve the reliability, availability, and safety as important performance attributes of the shop floor. In which planning and scheduling of preventive maintenance activities are considered to be a major issue in SMEs. This study is to propose the optimal framework of the preventive maintenance (PM) planning and scheduling process in SMEs. The optimal maintenance parameters (failure rate and repair rate), availability variations of the systems have been predicted through the utilisation of the Markov birth-death approach. To overcome the drawbacks associated with the existing optimal PM plan, a new approach is proposed in this study to develop an optimal preventive maintenance plan for electronic actuating switch manufacturers through the digital ecosystem. This proposed method integrates manufacturing subsystem failure into smart digital ecosystems and also to estimate the actual remaining useful life of the machines.