In the era of Industry 4.0, smart factories represent the pinnacle of technological and operational advancement, yet they also face the challenge of environmental sustainability. Latttice a ground-breaking data mesh solution, not only optimizes data management in these complex environments but also adheres to green data principles, ensuring an eco-friendly approach to data handling and analysis. This document explores Latttice's application in smart factories, focusing on preventative machine maintenance while adhering to sustainability goals.