This paper presents the architecture of a cyber-physical system for the automated washing of agricultural machinery, designed to enhance efficiency and intelligent control. The system includes four layers – physical, sensor, computational, and interface and integrates actuators, sensors, decision-making modules, and analytics. A Python--based simulation using Control and SimPy showed an average washing time of 10.4 minutes and 97.5% cycle initiation accuracy under critical contamination. The Control was achieved via gated recurrent unit (GRU) prediction and proportional–integral–derivative (PID) regulation. Despite assumptions like ideal sensors and fixed conditions, the system proved feasible, with the future work targeting real-world validation and digital twin development.