In This research, we delve into the dynamic synergy between sustainable energy and Industry 4.0 within the field of "Energy and Sustainable Engineering." It centers on integrating an emergency email generation system into a robust digitalization framework. The study prioritizes hands-on training, emphasizing practical applications that blend sustainable energy practices with the transformative principles of Industry 4.0. By focusing primarily on the intersection of sustainable energy, the project underscores the crucial role of digitization. This seamless integration aligns with the principles of automation, smart technologies, and the evolving landscape of digitization within industries committed to sustainable energy practices. The primary objective in this experiment is to integrate Industrial IoT into the realm of smart manufacturing, effectively incorporating our system into the framework of Industry 4.0, while prioritizing energy sustainability. Through this integration, our experimental results demonstrate that in the event of an emergency condition, instead of the automation system persisting under faulty conditions, an email notification is immediately sent to the operator, facilitated by IoT. This approach not only ensures swift response to critical situations but also contributes to energy conservation and overall sustainability. This initiative significantly contributes to ongoing discussions surrounding sustainable energy, digital transformation, and Industry 4.0, marking a significant step forward in promoting conscientious industrial practices for the future.