Vol. 25, No. 1 (2026), Sim26663 https://doi.org/10.24275/rmiq/Sim26663


Development of a low-cost virtual instrumentation prototype for coffee roasting based on the Internet of Things (IoT)


 

Authors

O. E. Guijarro-Rubio, D. R. Vinocunga-Pillajo, J. G. Padilla-Padilla, J. H. Granja-Ponce, O. Del Real, E. Guardado-Yordi, J. P. Pico-Poma, D. A. Sarabia-Guevara, A. Pérez-Martínez


Abstract

Implementing an instrumentation system in the coffee roasting process can help to improve the quality of the coffee produced by small-scale farmers in the Ecuadorian Amazon region. The proposed system aimed to design and implement a low-cost device capable of monitoring the coffee roasting process locally or remotely by applying Internet of Things (IoT) technology. The implemented IoT architecture was based on a model that integrates a data acquisition unit (DAQ), a main control unit (MCU), an IoT communication protocol, and a software-defined network (SDN) that connects the IoT broker, nodes, data server, Internet access gateway, and end-user devices. As a result, a low-cost virtual instrumentation system based on IoT technology was implemented, which enabled the publication of process variables acquired by the DAQ to the Mosquitto IoT broker through the Message Queuing Telemetry Transport (MQTT) protocol. These variables were stored in the InfluxDB time-series database and visualized through a dashboard designed in Node-RED and Grafana.


Keywords

Broker; Coffee roasting; IoT; MQTT.


References

  • Al-Shemmeri, M., Fryer, P., Farr, R., & Lopez-Quiroga, E. (2024). Development of coffee bean porosity and thermophysical properties during roasting. Journal of Food Engineering, 378, 112096. https://doi.org/10.1016/j.jfoodeng.2024.112096
  • Alamri, E., Rozan, M., & Bayomy, H. (2022). A study of chemical Composition, Antioxidants, and volatile compounds in roasted Arabic coffee. Saudi Journal of Biological Sciences, 29(5), 3133-3139. https://doi.org/10.1016/j.sjbs.2022.03.025
  • Alcantara, G. M. R. N., Martins, L. C., Gomes, W. P. C., Dresch, D., Rocha, F. R. P., & Melchert, W. R. (2025). Effect of roasting on chemical composition of coffee. Food Chemistry, 477, 143169. https://doi.org/10.1016/j.foodchem.2025.143169
  • Babun, L., Denney, K., Celik, Z. B., McDaniel, P., & Uluagac, A. S. (2021). A survey on IoT platforms: Communication, security, and privacy perspectives. Computer Networks, 192, 108040. https://doi.org/10.1016/J.COMNET.2021.108040
  • Bauer, D., Abreu, J., Jordão, N., da Rosa, J. S., Freitas-Silva, O., & Teodoro, A. (2018). Effect of Roasting Levels and Drying Process of Coffea canephora on the Quality of Bioactive Compounds and Cytotoxicity. International Journal of Molecular Sciences, 19(11), 3407. https://doi.org/10.3390/IJMS19113407
  • Bolka, M., & Emire, S. (2020). Effects of coffee roasting technologies on cup quality and bioactive compounds of specialty coffee beans. Food Science & Nutrition, 8(11), 6120-6130. https://doi.org/10.1002/FSN3.1904
  • Bonvoisin, J., Mies, R., & Boujut, J. F. (2021). Seven observations and research questions about Open Design and Open Source Hardware. Design Science, 7, e22. https://doi.org/10.1017/DSJ.2021.14
  • Cao, X., Wu, H., Viejo, C. G., Dunshea, F. R., & Suleria, H. A. R. (2023). Effects of postharvest processing on aroma formation in roasted coffee – a review. International Journal of Food Science and Technology, 58(3), 1007-1027. https://doi.org/10.1111/ijfs.16261
  • Castillo Landínez, S. P., Caicedo Rodríguez, P. E., Sánchez Gómez, D. F., & Carvalho, C. (2019). Diseño e implementación de un software para la trazabilidad del proceso de beneficio del café. Ciencia y Tecnología Agropecuaria, 20(3), 523-536. https://doi.org/10.21930/rcta.vol20num3art:1588
  • Chanchí, G., Ospina, M., & Saba, M. (2022). Sistema IoT para el monitoreo de variables climatológicas en cultivos de agricultura urbana. Revista Científica, 44(2), 257-271. https://doi.org/10.14483/23448350.18470
  • Chaparro, J., Barrera, N., & León, F. (2021). Módulo Terminal Remoto, para la adquisición de datos, monitoreo y control de procesos Agroindustriales - AgriculTIC. Ingeniare. Revista chilena de ingeniería, 29(2), 245-264. https://doi.org/10.4067/S0718-33052021000200245
  • Cisneros, F. (2017). 5 Razones por las que el Café de Especialidad está Emergiendo en Ecuador - Perfect Daily Grind Español. Perfect Daily Grind. https://perfectdailygrind.com/es/2017/03/15/5-razones-por-las-que-el-cafe-de-especialidad-esta-emergiendo-en-ecuador/
  • Ciruela, A., Del Aguila, A., Padilla, A., & Plaza, J. (2020). Digitalization of Agri-Cooperatives in the Smart Agriculture Context. Proposal of a Digital Diagnosis Tool. Sustainability 2020, Vol. 12, Page 1325, 12(4), 1325. https://doi.org/10.3390/SU12041325
  • De Felice, F., Rehman, M., Petrillo, A., & Baffo, I. (2025). Decoding the coffee supply chain: A systematic review of stakeholders, sustainability opportunities, and challenges. Sustainable Futures, 10, 101105. https://doi.org/10.1016/J.SFTR.2025.101105
  • Escobar, E., & Villazón, A. (2018). Sistema de monitoreo energético y control domótico basado en tecnología Internet de las Cosas. Investigación & Desarrollo, 18(1), 103-116. https://doi.org/10.23881/idupbo.018.1-8i
  • Figueroa, E., Perez, F., & Godinez, L. (2015). La producción y el consumo del café (Vol. 1). ECORFAN- Spain. http://ri.uaemex.mx/handle/20.500.11799/64936
  • Freitas, V. V., Borges, L. L. R., Castro, G. A. D., Almeida, L. F., Crepalde, L. T., Kobi, H. d. B., Vidigal, M. C. T. R., dos Santos, M. H., Fernandes, S. A., Maitan-Alfenas, G. P., & Stringheta, P. C. (2024). Influence of roasting levels on chemical composition and sensory quality of Arabica and Robusta coffee: A comparative study. Food Bioscience, 59, 104171. https://doi.org/10.1016/j.fbio.2024.104171
  • Gallardo, I., Nicasio, P., Santibáñez, A., Cabrera, S., & Cruz, F. (2022). Ethnopharmacological study of the genus Coffea and compounds of biological importance. Revista Mexicana de Ingeniería Química, 21(3), 1–21. https://doi.org/10.24275/rmiq/Bio2856
  • Guijarro-Rubio, O. E., Vinocunga-Pillajo, D. R., Del Real-Fleites, O., Guardado-Yordi, E., & Pérez-Martínez, A. (2025). Monitoring of environmental variables in greenhouse crops through an IoT wireless sensor network. DYNA, 92(235), 47-56. https://doi.org/10.15446/dyna.v92n235.115402
  • Guijarro Rubio, O. E., Cerda Mejía, V. R., Benítez Cortés, I., Cerda Mejía, G. L., Guardado Yordi, E., Ortega Tenezaca, D. B., González Suárez, E., & Pérez Martínez, A. (2021). Remote monitoring of operational parameters for the cane honey production process. Lámpsakos, 25, 3991. https://doi.org/10.21501/21454086.3991
  • Habara, M., & Horiguchi, T. (2024). Impact of Coffee Roasting and Grind Size on Acidity and Bitterness: Sensory Evaluation Using Electronic Tongue. Chemosensors, 12(9), 196. https://doi.org/10.3390/chemosensors12090196
  • Hernández, A., Casillas, B., Cocotle, Y., Puebla, H., & Hernández, E. (2018). Coffee roasting monitoring using 2D Fourier transform. Revista Mexicana de Ingeniería Química, 19(1), 231–240. https://doi.org/10.24275/uam/izt/dcbi/revmexingquim/2019v18n1/HernandezA
  • Hernández-Díaz, W. N., Hernández-Campos, F. J., Vargas-Galarza, Z., Rodríguez-Jimenes, G. C., & García-Alvarado, M. A. (2013). Coffee grain rotary drying optimization. Revista Mexicana de Ingeniería Química, 12(2), 315-325. http://www.scielo.org.mx/scielo.php?script=sci_arttext&pid=S1665-27382013000200011
  • Hmissi, F., & Ouni, S. (2022). TD-MQTT: Transparent Distributed MQTT Brokers for Horizontal IoT Applications IEEE 9th International Conference on Sciences of Electronics, Technologies of Information and Telecommunications (SETIT), Hammamet, Tunisia. https://doi.org/10.1109/SETIT54465.2022.9875881
  • Hoque, S., Ahmmed, I., Jobair, A., Hossain, M. S., Uddin, M. R., & Hasan, M. (2024). Development of a Scalable Industrial Process Monitoring Sensor System for Large-Scale IoT Networks using MQTT and Time Series Database. 2024 IEEE 3rd International Conference on Electrical Power and Energy Systems, ICEPES 2024. https://doi.org/10.1109/ICEPES60647.2024.10653574
  • Juárez, C. (2017). Guía de Tueste del Café: Cómo Controlar la Carga de Temperatura - Perfect Daily Grind Español. https://perfectdailygrind.com/es/2017/10/05/guia-de-tuestes-del-cafe-como-controlar-la-carga-de-energias/
  • Lawrence, A., & Tariq, I. (2019). Design and implementation of a low-cost, open source IoT-based SCADA system using ESP32 with OLED, ThingsBoard and MQTT protocol. AIMS Electronics and Electrical Engineering, 4(1), 57-86. https://doi.org/10.3934/ELECTRENG.2020.1.57
  • Liu, L., Cheng, W., & Kuo, H.-W. (2025). A Narrative Review on Smart Sensors and IoT Solutions for Sustainable Agriculture and Aquaculture Practices. Sustainability, 17(12), 5256. https://doi.org/10.3390/su17125256
  • Longo, E., Redondi, A. E. C., Cesana, M., Arcia-Moret, A., & Manzoni, P. (2020, June). MQTT-ST: A Spanning Tree Protocol for Distributed MQTT Brokers IEEE International Conference on Communications (ICC), Dublin, Ireland. https://doi.org/10.1109/ICC40277.2020.9149046
  • Mateos, D., Lozano, Á., Jiménez, D. M., Sales, A., & Leithardt, R. Q. (2022). Low-cost Edge Computing devices and novel user interfaces for monitoring pivot irrigation systems based on Internet of Things and LoRaWAN technologies. Biosystems Engineering, 223, 14-29. https://doi.org/10.1016/J.BIOSYSTEMSENG.2021.07.010
  • Mejía, V. C., Mejía, G. C., Rubio, O. G., Cortes, I. B., Yordi, E. G., Tenezaca, B. O., Miño Valdés, J., Suárez, E. G., & Martínez, A. P. (2022). Automatic Control System for Cane Honey Factories in Developing Country Conditions. Processes, 10(5), 915. https://doi.org/10.3390/pr10050915
  • Nuñez, E., Baquero, E. d. l. M., Rengel, H., & Noboa, M. Y. (2024). El software de código abierto, democratizando el análisis estadístico en la ciencia de datos. Revista Científica de Innovación Educativa y Sociedad Actual “ALCON”, 4(5), 179-188. https://doi.org/10.62305/ALCON.V4I5.361
  • Obando, A. M., & Figueroa, J. G. (2024). Effect of Roasting Level on the Development of Key Aroma-Active Compounds in Coffee. Molecules, 29(19). https://doi.org/10.3390/molecules29194723
  • Oviedo, B., Suarez, L., Zhuma, E., Puris, A., & Hernández, R. (2019). Visualizador de tráfico de red de comunicación basadas en la Arquitectura TCP/IP. Revista Universidad y Sociedad, 11(2), 193-202. https://orcid.org/0000-0002-5366-5917
  • Prada, Á., Vela, C. P., Bardález, G., & Saavedra, J. (2019). Efectividad de un Proceso de Secado de Café usando Secadores Solares con Sistema de Flujo de Aire Continuo Impulsado por Energía Fotovoltaica, en la Región San Martín, Perú. Información Tecnológica, 30(6), 85-92. https://doi.org/10.4067/S0718-07642019000600085
  • Puranik, V., Sharmila, Ranjan, A., & Kumari, A. (2019). Automation in Agriculture and IoT 4th International Conference on Internet of Things: Smart Innovation and Usages (IoT-SIU), Ghaziabad, India. https://doi.org/10.1109/IOT-SIU.2019.8777619
  • Purnata, H., Supriyono, S., Kurniabayu, M., & Abshor, R. (2025). Optimization of Small-Scale Coffee Roasting Machine with Servo Temperature and Angle Control for Consistent Roasting Results. Jurnal Ecotipe (Electronic, Control, Telecommunication, Information, and Power Engineering), 12(1), 43-53. https://doi.org/10.33019/jurnalecotipe.v12i1.4551
  • Rajendran, S., Prasath, T. H., Revathi, S., & Rajesh, K. (2021). Basic Food Safety Monitoring and Enhancement in Coffee Industry Using IOT International Conference on Advance Computing and Innovative Technologies in Engineering (ICACITE), Greater Noida, India. https://doi.org/10.1109/ICACITE51222.2021.9404609
  • Sadeq, A. S., Hassan, R., Al-rawi, S., Jubair, A., & Aman, A. (2019, 25-26 Sept. 2019). A Qos Approach For Internet Of Things (Iot) Environment Using Mqtt Protocol 2019 International Conference on Cybersecurity (ICoCSec), Negeri Sembilan, Malaysia.
  • Samoggia, A., & Busi, R. (2023). Sustainable coffee capsule consumption: Understanding Italian consumers’ purchasing drivers. Frontiers, 7, 1-13. https://doi.org/10.3389/fsufs.2023.1088877
  • Sánchez, E., Hernández, L., & López, M. (2022). Desarrollo e implementación de un sistema de monitoreo de temperatura y humedad utilizando Internet de las Cosas IOT. In I. Instituto Antioqueño de (Ed.), Ingenieria y Desarrollo en la Nueva Era (Vol. 1, pp. 751-758). https://www.researchgate.net/profile/Edgar-Serna-M/publication/366642260_Ingenieria_y_Desarrollo_en_la_Nueva_Era/links/63ac48a7a03100368a36105e/Ingenieria-y-Desarrollo-en-la-Nueva-Era.pdf#page=763
  • Santos, J., Freitas, O., Costa, J., da Silva, I. G., Moreira, F. J., de Almeida, D., Schwab, N., de Oliveira, R. L., Nogueira, M., & de Rezende, C. (2016). Mass spectrometry screening of Arabica coffee roasting: A non-target and non-volatile approach by EASI-MS and ESI-MS. Food Research International, 89, 967-975. https://doi.org/10.1016/J.FOODRES.2016.03.021
  • Theodorou, T., & Mamatas, L. (2017, January). CORAL-SDN: A software-defined networking solution for the internet of things Conference on Network Function Virtualization and Software Defined Networks (NFV-SDN), Berlin, Germany. https://doi.org/10.1109/NFV-SDN.2017.8169870
  • Toledo, P., Pezza, L., Pezza, H. R., & Toci, A. T. (2016). Relationship Between the Different Aspects Related to Coffee Quality and Their Volatile Compounds. Compr Rev Food Sci Food Saf, 15(4), 705-719. https://doi.org/10.1111/1541-4337.12205
  • Torres, J., Ruelas, A., & Herrera, J. (2023). Rendimiento para interoperabilidad entre raspberry pi, ESP8266 y PLC con Node-RED para el IIOT. Ingenius, 2023(29), 90-97. https://doi.org/10.17163/ings.n29.2023.08
  • Tsai, W.-H., Lee, K.-H., & Huang, C.-C. (2025). Energy Efficiency and Carbon Emission Reduction in Coffee Roasting: Approach of Activity-Based Costing (ABC) Methodology. Energies, 18(5). https://doi.org/10.3390/en18051018
  • van Rikxoort, H., Läderach, P., & van Hal, J. (2013). The Potential of Latin American Coffee Production Systems to Mitigate Climate Change. In Climate Change Management (pp. 655-679). https://doi.org/10.1007/978-3-642-31110-9_43/COVER
  • Vega, A., De León, J. A., & Reyes, S. M. (2017). Determination of the Content of Total Polyphenols, Flavonoids and Antioxidant Activity in 34 Commercial Coffee Brands of Panama. Información Tecnológica, 28(4), 29-38. https://doi.org/10.4067/S0718-07642017000400005
  • Vera, L., Pilosor, J., & Machuca, M. (2022). Red inalámbrica de sensores para monitoreo y control de cultivos de Citrullus Lanatus (Sandía). Revista Científica de Informática ENCRIPTAR, 15-24. https://publicacionescd.uleam.edu.ec/index.php/encriptar/article/view/335
  • Wang, C., Qiao, J., Huang, X., Song, S., Hou, H., Jiang, T., Rui, L., Wang, J., & Sun, J. (2025). Apache IoTDB: A Time Series Database for Large Scale IoT Applications. ACM Transactions on Database Systems, 50(2), 45. https://doi.org/10.1145/3726523
  • Xu, Y., Shaull, J., Bavar, T., & Tan, L. (2018, January). Smart coffee roaster design with connected devices International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA. https://doi.org/10.1109/ICCE.2018.8326177
  • Yosa, M., & García, J. (2021). Análisis de la competitividad de las exportaciones de café de Ecuador versus Colombia y Brasil hacia el mercado de USA. X-Pedientes Económicos, 5(12), 65-80. https://ojs.supercias.gob.ec/index.php/X-pedientes_Economicos/article/view/63
  • Zakidou, P., Plati, F., Matsakidou, A., Varka, E. M., Blekas, G., & Paraskevopoulou, A. (2021). Single Origin Coffee Aroma: From Optimized Flavor Protocols and Coffee Customization to Instrumental Volatile Characterization and Chemometrics. Molecules, 26(15). https://doi.org/10.3390/molecules26154609