Texture consistency and the prevention of thermal degradation of macronutrients are the most important quality parameters in cookie production. Conventional baking processes often cause amino acid degradation due to overcooking that is not precisely monitored. This study aims to design and implement a Random Forest algorithm on a Smart Oven prototype based on an ESP32 microcontroller to automatically and in real-time classify the dough’s maturity stage. This system is integrated with a DHT11 sensor to monitor exhaust temperature and humidity, as well as an MQ135 sensor to detect Volatile Organic Compound (VOC) emissions as an indicator of aroma formation from the Maillard reaction. The research methodology includes hardware design, mapping the nutrient degradation phases of the ingredients, collecting multivariate time-series datasets during the baking process, and training the classification model. Test results show that the prototype successfully identified the optimal maturity point at the 15-minute mark and sharply detected the overbaked phase that damages protein structure. Performance evaluation of the Random Forest model recorded an accuracy rate of 60%, precision of 51%, and recall of 60%. Although predictive performance was moderate due to the measurement sensitivity limits of the sensors and the need for a larger dataset, the integration of smart computing based on gas and temperature detection in this device has proven its operational feasibility. In conclusion, this prototype serves as an innovative foundation that has proven capable of dynamically responding to chemical changes in dough to minimize production failures in the baking industry