We are outlining the detailed process of retrofitting a legacy CNC machine to add connectivity and integrate it into the Industry 4.0 framework. This work offers significant benefits, especially for small and medium-sized companies. The outcome has the potential to enhance sustainability in industrial processes by focusing on the machine’s energy consumption.