A Blockchain and IoT-Enabled Framework for Ethical and Secure Coffee Supply Chains
Abstract
1. Introduction
1.1. Modern Coffee Supply Chain in a Global Context
1.2. Problem Motivation
1.2.1. Lack of End-to-End Traceability
1.2.2. Manual and Error-Prone Record-Keeping
1.2.3. Data Tampering and Lack of Auditability
1.2.4. Limited Consumer Trust
1.2.5. Insufficient Automation and Real-Time Monitoring
1.3. The Need for Blockchain and IoT in the Coffee Supply Chain
1.3.1. Blockchain for Immutable and Transparent Record-Keeping
1.3.2. IoT for Automated and Real-Time Data Monitoring and Collection
1.3.3. Smart Contracts for Rule Enforcement and Workflow Automation
1.3.4. Enhanced Consumer Trust Through Verifiability
1.3.5. Standardized Multi-Party Access
1.3.6. Enables Ethical Impact Assessment
1.4. Our Contributions
- We propose a blockchain and IoT-based system architecture that enables secure and traceable transactions across all stages of the coffee supply chain.
- We design and implement Ethereum smart contract to handle ownership transfers, quality assurance, and environmental compliance, demonstrating how real-world data can trigger on-chain actions.
- We provide a unified role-based interaction model that aligns farmers, cooperatives, exporters, roasters, and retailers through transparent smart contract interactions.
- We simulate IoT sensor data, including RFID, GPS, weighing systems, environmental sensors, and mobile validation, then integrate these into blockchain-based smart contract workflows for end-to-end traceability testing.
- We evaluate performance using 1000 transactions and provide transaction fee, time distribution, and administrative cost insights, demonstrating low overhead and smart contract efficiency.
- We outline a future-ready system architecture by identifying the IoT hardware and platforms (e.g., Raspberry Pi, Node-RED) suitable for transitioning from simulation to real-world deployment.
1.5. Paper Organization
2. Existing Studies and Literature Review
2.1. IoT Sensor Technologies for Coffee Environment Monitoring
2.2. RFID and Tagging Technologies in Coffee Traceability Systems
2.3. Communication Protocols and Network Architectures
2.4. Edge Computing and Blockchain Integration
3. Methodology
3.1. System Architecture and Dataset Design for IoT-Supported Blockchain Integration
3.1.1. RFID Registration
3.1.2. GPS Logging
3.1.3. Weight Measurement
3.1.4. Environmental Monitoring
3.1.5. Mobile Validation
3.2. Smart Contract
3.2.1. Inputs to Smart Contract
3.2.2. Key Functions of Smart Contract
3.3. Ledger Structure
3.4. Roles and Interaction
4. Results and Discussion
4.1. Transaction Fee Distribution
4.2. Transaction Time Distribution
4.3. Administrative Gas Overhead in the Smart Contract
4.4. Discussion and Observations
4.5. Security and Threat Considerations
5. Challenges and Future Work
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
API | Application Programming Interface |
CDF | Cumulative Distribution Function |
ETH | Ethereum |
ESG | Environmental, Social, and Governance |
GPS | Global Positioning System |
ID | Identification |
IoT | Internet of Things |
IPFS | InterPlanetary File System |
NFC | Near-Field Communication |
QR Code | Quick-Response Code |
RFID | Radio-Frequency Identification |
References
- Daviron, B.; Ponte, S. The Coffee Paradox: Global Markets, Commodity Trade and the Elusive Promise of Development; Zed Books: London, UK, 2005. [Google Scholar]
- Macdonald, K. Globalising justice within coffee supply chains? Fair Trade, Starbucks and the transformation of supply chain governance. Third World Q. 2007, 28, 793–812. [Google Scholar] [CrossRef]
- Azis, A.M.; Irjayanti, M.; Rusyandi, D. Visibility and information accuracy of coffee supply chain in West Java Indonesia. In Modeling Economic Growth in Contemporary Indonesia; Emerald Publishing Limited: Leeds, UK, 2022; pp. 225–236. [Google Scholar]
- Alamsyah, A.; Widiyanesti, S.; Wulansari, P.; Nurhazizah, E.; Dewi, A.S.; Rahadian, D.; Ramadhani, D.P.; Hakim, M.N.; Tyasamesi, P. Blockchain traceability model in the coffee industry. J. Open Innov. Technol. Mark. Complex. 2023, 9, 100008. [Google Scholar] [CrossRef]
- Lukas, K.D. The Supply Chain of Fair Trade Coffee: Challenges, Opportunities & the Future Inside a Troubled Industry. Master’s Thesis, University of Vermont, Burlington, VT, USA, 2015. [Google Scholar]
- Upadhyay, K.; Dantu, R.; He, Y.; Badruddoja, S.; Salau, A. Auditing metaverse requires multimodal deep learning. In Proceedings of the 2022 IEEE 4th International Conference on Trust, Privacy and Security in Intelligent Systems, and Applications (TPS-ISA), Atlanta, GA, USA, 14–17 December 2022; pp. 39–46. [Google Scholar]
- Tharatipyakul, A.; Pongnumkul, S.; Riansumrit, N.; Kingchan, S.; Pongnumkul, S. Blockchain-based traceability system from the users’ perspective: A case study of Thai coffee supply chain. IEEE Access 2022, 10, 98783–98802. [Google Scholar] [CrossRef]
- Garcia, A.; Dávila, J.; Wong, L. Framework to improve the traceability of the coffee production chain in peru by applying a blockchain architecture. In Proceedings of the 2022 32nd Conference of Open Innovations Association (FRUCT), Tampere, Finland, 9–11 November 2022; pp. 93–101. [Google Scholar]
- Sabio, R.P.; Spers, E.E. Does coffee origin matter? An analysis of consumer behavior based on regional and national origin. In Coffee Consumption and Industry Strategies in Brazil; Elsevier: Amsterdam, The Netherlands, 2020; pp. 297–320. [Google Scholar]
- da Costa, T.P.; Gillespie, J.; Cama-Moncunill, X.; Ward, S.; Condell, J.; Ramanathan, R.; Murphy, F. A systematic review of real-time monitoring technologies and its potential application to reduce food loss and waste: Key elements of food supply chains and IoT technologies. Sustainability 2022, 15, 614. [Google Scholar] [CrossRef]
- Upadhyay, K.; Dantu, R.; Zaccagni, Z.; Badruddoja, S. Is your legal contract ambiguous? Convert to a smart legal contract. In Proceedings of the 2020 IEEE International Conference on Blockchain (Blockchain), Rhodes, Greece, 2–6 November 2020; pp. 273–280. [Google Scholar]
- Badruddoja, S.; Dantu, R.; Widick, L.; Zaccagni, Z.; Upadhyay, K. Integrating DOTS with blockchain can secure massive IoT sensors. In Proceedings of the 2020 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW), New Orleans, LA, USA, 18–22 May 2020; pp. 937–946. [Google Scholar]
- Upadhyay, K.; Dantu, R.; He, Y.; Salau, A.; Badruddoja, S. Make consumers happy by defuzzifying the service level agreements. In Proceedings of the 2021 Third IEEE International Conference on Trust, Privacy and Security in Intelligent Systems and Applications (TPS-ISA), Atlanta, GA, USA, 13–15 December 2021; pp. 98–105. [Google Scholar]
- Upadhyay, K.; Dantu, R.; He, Y.; Salau, A.; Badruddoja, S. Paradigm shift from paper contracts to smart contracts. In Proceedings of the 2021 Third IEEE International Conference on Trust, Privacy and Security in Intelligent Systems and Applications (TPS-ISA), Atlanta, GA, USA, 13–15 December 2021; pp. 261–268. [Google Scholar]
- Upadhyay, K.; Dantu, R.; He, Y.; Badruddoja, S.; Salau, A. Can’t Understand SLAs? Use the Smart Contract. In Proceedings of the 2021 Third IEEE International Conference on Trust, Privacy and Security in Intelligent Systems and Applications (TPS-ISA), Atlanta, GA, USA, 13–15 December 2021; pp. 129–136. [Google Scholar]
- Swindall, M.I.; Upadhyay, K.; Brusuelas, J.H.; West, G.; Wallin, J.F. Smart Digital Edition Management: A Blockchain Framework for Papyrology. In Proceedings of the 2024 Computers and People Research Conference, Murfreesboro, TN, USA, 29 May–1 June 2024; pp. 1–10. [Google Scholar]
- Rutayisire, J.; Markon, S.; Raymond, N. IoT based Coffee quality monitoring and processing system in Rwanda. In Proceedings of the 2017 International Conference on Applied System Innovation (ICASI), Sapporo, Japan, 13–17 May 2017. [Google Scholar]
- Kittichotsatsawat, Y.; Jangkrajarng, V.; Tippayawong, K.Y. Enhancing Coffee Supply Chain towards Sustainable Growth with Big Data and Modern Agricultural Technologies. Sustainability 2021, 13, 4593. [Google Scholar] [CrossRef]
- Morales, A.; Castillo, J. Application of the Internet of Things through a Network of Wireless Sensors in a Coffee Crop for Monitoring and Control its Environmental Variables. Rev. Fac. Ing. 2019, 46, 101–116. [Google Scholar]
- Varriale, V.; Cammarano, A.; Michelino, F.; Caputo, M. Sustainable Supply Chains with Blockchain, IoT and RFID: A Simulation on Order Management. Sustainability 2021, 13, 6372. [Google Scholar] [CrossRef]
- Khan, R.; Turowski, K. A Survey of Current Challenges in IoT Security and Possible Countermeasures. 2016. Available online: https://www.semanticscholar.org/paper/A-Survey-of-Current-Challenges-in-Manufacturing-IoT-Khan-Turowski/f2a2e39cdfa0c3e3b89415d8a33fbb9baa1a8b5a (accessed on 1 May 2025).
- Durmus, K.; Karaca, Y. Internet of Things enabled real time cold chain monitoring in a container port. J. Shipp. Trade 2022, 7, 9. [Google Scholar] [CrossRef]
- Dalenogare, L.; Benitez, G.; Ayala, N.; Frank, A. The expected contribution of Industry 4.0 technologies for industrial performance. J. Manuf. Syst. 2022, 204, 383–394. [Google Scholar] [CrossRef]
- MOKOSMART. Top 7 Examples of IoT in the Coffee Supply Chain. 2024. Available online: https://www.mokosmart.com/iot-in-the-coffee-supply-chain/ (accessed on 1 May 2025).
- Albraheem, L.; Alajlan, H.; Alkhair, L.A.; Gwead, S.B. An IoT-based smart plug energy monitoring system. Int. J. Adv. Comput. Sci. Appl. 2023, 14. [Google Scholar] [CrossRef]
- Trollman, H.; Garcia-Garcia, G.; Jagtap, S.; Trollman, F. Blockchain for Ecologically Embedded Coffee Supply Chains. Logistics 2022, 6, 43. [Google Scholar] [CrossRef]
- Kamble, S.; Gunasekaran, A.; Sharma, R. Blockchain Technology in Supply Chain Operations: Applications, Challenges and Research Opportunities. Transp. Res. Part E Logist. Transp. Rev. 2020, 142, 102067. [Google Scholar]
- Vernall, D. Increasing Supply Chain Visibility Through the Use of IoT Sensors and Blockchain. 2023. Available online: https://www.linkedin.com/pulse/increasing-supply-chain-visibility-through-use-iot-sensors-vernall-hljrc/ (accessed on 1 May 2025).
- Thiruchelvam, V.; Mughisha, A.; Shahpasand, M.; Bamiah, M. Blockchain-based Technology in the Coffee Supply Chain Trade: Case of Burundi Coffee. J. Telecommun. Electron. Comput. Eng. 2018, 10, 121–125. [Google Scholar]
- Mondal, S.; Wijewardena, K.; Karuppuswami, S.; Kriti, N.; Kumar, D.; Chahal, P. Blockchain Inspired RFID-Based Information Architecture for Food Supply Chain. IEEE Internet Things J. 2019, 6, 5803–5813. [Google Scholar] [CrossRef]
- Bager, S.; Düdder, B.; Henglein, F.; Hébert, J.; Wu, H. Event-Based Supply Chain Network Modeling: Blockchain for Good Coffee. Front. Blockchain 2022, 5, 846783. [Google Scholar] [CrossRef]
- Goyal, M.; Mahmoud, Q.H. A systematic review of synthetic data generation techniques using generative AI. Electronics 2024, 13, 3509. [Google Scholar] [CrossRef]
- Su, J.; Sheng, Z.; Huang, C.; Li, G.; Liu, A.X.; Fu, Z. Identifying RFID tags in collisions. IEEE/ACM Trans. Netw. 2022, 31, 1507–1520. [Google Scholar] [CrossRef]
- Jain, S.M. Introduction to remix IDE. In A Brief Introduction to Web3: Decentralized Web Fundamentals for App Development; Springer: Berlin/Heidelberg, Germany, 2022; pp. 89–126. [Google Scholar]
- Lee, W.M.; Lee, W.M. Using the metamask chrome extension. Beginning Ethereum Smart Contracts Programming: With Examples in Python, Solidity, and JavaScript; Apress: Berkeley, CA, USA, 2019; pp. 93–126. [Google Scholar]
- Nhan, T.; Upadhyay, K.; Poudel, K. Towards Patient-Centric Healthcare: Leveraging Blockchain for Electronic Health Records. In Proceedings of the 2024 Computers and People Research Conference, Murfreesboro, TN, USA, 29 May–1 June 2024; pp. 1–8. [Google Scholar]
- Lekić, M.; Gardašević, G. IoT sensor integration to Node-RED platform. In Proceedings of the 2018 17th International Symposium Infoteh-Jahorina (Infoteh), East Sarajevo, Bosnia and Herzegovina, 21–23 March 2018; pp. 1–5. [Google Scholar]
- Wang, Z.; Chen, Y.; Wan, W.; Xie, Y.; Ou, Y. Reading Method of Physical Characteristic Data of RFID Radio Frequency for Wireless Perception. In Proceedings of the 2021 2nd International Conference on Electronics, Communications and Information Technology (CECIT), Sanya, China, 27–29 December 2021; pp. 879–883. [Google Scholar]
- Nikitin, P.V.; Rao, K.; Lazar, S. An overview of near field UHF RFID. In Proceedings of the 2007 IEEE International Conference on RFID, Grapevine, TX, USA, 26–28 March 2007; pp. 167–174. [Google Scholar]
- Mehta, D.; Verma, P.; Rawat, A. Data Analysis of U-blox GPS on Static and Dynamic Drone Platform. In Proceedings of the 2023 IEEE Wireless Antenna and Microwave Symposium (WAMS), Ahmedabad, India, 7–10 June 2023; pp. 1–4. [Google Scholar]
- Cardoso, E.S.; Lieira, D.D.; Teixeira, M.A.; Nakamura, L.H.V.; Meneguette, R.I. IS-DASPA: An IoT system for data analysis from soil preparation in agribusiness. In Proceedings of the 2023 18th Iberian Conference on Information Systems and Technologies (CISTI), Aveiro, Portugal, 20–23 June 2023; pp. 1–6. [Google Scholar]
- Bue, G.; Makinen, J.; Cox, M.; Watts, C.; Campbell, C.; Vogel, M.; Colunga, A.; Conger, B. Long-duration testing of a spacesuit water membrane evaporator prototype. In Proceedings of the 42nd International Conference on Environmental Systems, San Diego, CA, USA, 15–19 July 2012; p. 3459. [Google Scholar]
- Ahmad, Y.A.; Gunawan, T.S.; Mansor, H.; Hamida, B.A.; Hishamudin, A.F.; Arifin, F. On the evaluation of DHT22 temperature sensor for IoT application. In Proceedings of the 2021 8th International Conference on Computer and Communication Engineering (ICCCE), Kuala Lumpur, Malaysia, 22–23 June 2021; pp. 131–134. [Google Scholar]
- Upton, E.; Halfacree, G. Raspberry Pi User Guide; John Wiley & Sons: Hoboken, NJ, USA, 2016. [Google Scholar]
- Haxhibeqiri, J.; De Poorter, E.; Moerman, I.; Hoebeke, J. A survey of LoRaWAN for IoT: From technology to application. Sensors 2018, 18, 3995. [Google Scholar] [CrossRef]
- Rehman, M.; Petrillo, A.; Baffo, I.; Iovine, G.; De Felice, F. Optimizing Coffee Supply Chain Transparency and Traceability through Mobile Application. Procedia Comput. Sci. 2025, 253, 2116–2126. [Google Scholar] [CrossRef]
- Madlmayr, G.; Langer, J.; Kantner, C.; Scharinger, J. NFC devices: Security and privacy. In Proceedings of the 2008 Third International Conference on Availability, Reliability and Security, Barcelona, Spain, 4–7 March 2008; pp. 642–647. [Google Scholar]
- Kumar, H.; Upadhyay, K. Decentralized Engagement: Blockchain’s Lens on Social Media. In Proceedings of the International Congress on Blockchain and Applications; Springer: Berlin/Heidelberg, Germany, 2024; pp. 278–287. [Google Scholar]
- Ali, S.; Robinson, B.; Solomon, S.; Poudel, S.; Sharma, A.; Upadhyay, K. Chain Your Loot: Implementing Blockchain into Gaming Loot Box Markets. In Proceedings of the 2025 IEEE 15th Annual Computing and Communication Workshop and Conference (CCWC), Las Vegas, NV, USA, 6–8 January 2025; pp. 861–867. [Google Scholar]
- Singh, D.; Sandhu, A.; Thakur, A.; Priyank, N. An overview of IoT hardware development platforms. Int. J. Emerg. Technol. 2020, 11, 155–163. [Google Scholar]
- Sande Ríos, J. Optimizing Compilation of Array Accesses in Solidity Smart Contracts. Bachelor’s Thesis, The Complutense University of Madrid, Madrid, Spain, 2023. [Google Scholar]
- Agarwal, P.; Alam, M. Investigating IoT middleware platforms for smart application development. In Proceedings of the Smart Cities—Opportunities and Challenges: Select Proceedings of ICSC 2019; Springer: Berlin/Heidelberg, Germany, 2020; pp. 231–244. [Google Scholar]
- Robinson, P. The merits of using ethereum mainnet as a coordination blockchain for ethereum private sidechains. Knowl. Eng. Rev. 2020, 35, e30. [Google Scholar] [CrossRef]
- Pianosi, F.; Wagener, T. A simple and efficient method for global sensitivity analysis based on cumulative distribution functions. Environ. Model. Softw. 2015, 67, 1–11. [Google Scholar] [CrossRef]
- Salau, A.; Dantu, R.; Morozov, K.; Upadhyay, K.; Badruddoja, S. Towards a Threat Model and Security Analysis for Data Cooperatives. In Proceedings of the SECRYPT, Lisbon, Portugal, 11–13 July 2022; pp. 707–713. [Google Scholar]
- Balamurugan, C.; Satheesh, R. Development of raspberry pi and IoT based monitoring and controlling devices for agriculture. J. Soc. Technol. Environ. Sci. 2017, 6, 207–215. [Google Scholar]
- Mohammed, A.H.; Abdulateef, A.A.; Abdulateef, I.A. Hyperledger, Ethereum and blockchain technology: A short overview. In Proceedings of the 2021 3rd International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA), Ankara, Turkey, 11–13 June 2021; pp. 1–6. [Google Scholar]
- Bredberg, S. Fairtrade versus Rainforest Alliance. Bachelor’s Thesis, Department of Economics, Lund University, Lund, Sweden, 2010. [Google Scholar]
- Sohn, B.; Woo, S.; Han, J.; Cho, H.; Byun, J.; Kim, D. Gs1 connected car using epcis-ons system. In Proceedings of the 2016 IEEE International Congress on Big Data (BigData Congress), San Francisco, CA, USA, 27 June–2 July 2016; pp. 426–429. [Google Scholar]
- Vangala, A.; Das, A.K.; Kumar, N.; Alazab, M. Smart secure sensing for IoT-based agriculture: Blockchain perspective. IEEE Sens. J. 2020, 21, 17591–17607. [Google Scholar] [CrossRef]
- Salau, A.; Dantu, R.; Upadhyay, K. Data cooperatives for neighborhood watch. In Proceedings of the 2021 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Sydney, Australia, 3–6 May 2021; pp. 1–9. [Google Scholar]
Feature | Our Work | Paper 1 [29] | Paper 2 [30] | Paper 3 [20] | Paper 4 [26] | Paper 5 [31] | Paper 6 [4] |
---|---|---|---|---|---|---|---|
Year | 2025 | 2018 | 2019 | 2021 | 2022 | 2022 | 2023 |
Blockchain | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Dual-Layer Architecture | ✓ | × | × | × | × | × | × |
IoT Integration | ✓ | ✓ | ✓ | ✓ | ✓ | × | × |
Environmental Sensors | ✓ | × | ✓ | × | ✓ | × | × |
Origin Authentication | ✓ | × | ✓ | × | × | × | × |
Process Verification | ✓ | × | × | × | × | × | × |
Advanced Smart Contracts | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Mobile Quality Assessment | ✓ | ✓ | × | × | × | × | × |
Transaction Cost Analysis | ✓ | × | × | × | × | × | × |
STRIDE Category | Potential Threat in the System | Mitigation Strategy (Current and Planned) |
---|---|---|
Spoofing Identity | Malicious actors may impersonate legitimate users or sensors to submit falsified data. | Smart contracts enforce strict user registration via registerUsers and access control using onlyOwner. Sensor authentication protocols are part of future enhancements. |
Tampering with Data | Attackers could alter sensor data during transmission or before it is stored on-chain. | Blockchain immutability ensures post-submission integrity. Future work includes encrypted sensor transmission and data signing. |
Repudiation | Users might deny initiating or participating in transactions. | Ethereum stores all transactions on-chain with cryptographic signatures and timestamps, enabling full audit trails. |
Information Disclosure | Leakage of sensitive data like GPS location or user identity. | Minimal Personally Identifiable Information is recorded. Future work includes off-chain encrypted storage and proxy re-encryption mechanisms. |
Denial of Service (DoS) | Excessive requests may overload sensors or smart contracts. | Ethereum’s gas mechanism limits resource abuse. Rate limiting and transaction prioritization are proposed for future deployment. |
Elevation of Privilege | Unauthorized users might access restricted contract functions. | Solidity-based role enforcement using onlyOwner ensures role-based restrictions. |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Byrd, J.; Upadhyay, K.; Poudel, S.; Sharma, H.; Gu, Y. A Blockchain and IoT-Enabled Framework for Ethical and Secure Coffee Supply Chains. Future Internet 2025, 17, 334. https://doi.org/10.3390/fi17080334
Byrd J, Upadhyay K, Poudel S, Sharma H, Gu Y. A Blockchain and IoT-Enabled Framework for Ethical and Secure Coffee Supply Chains. Future Internet. 2025; 17(8):334. https://doi.org/10.3390/fi17080334
Chicago/Turabian StyleByrd, John, Kritagya Upadhyay, Samir Poudel, Himanshu Sharma, and Yi Gu. 2025. "A Blockchain and IoT-Enabled Framework for Ethical and Secure Coffee Supply Chains" Future Internet 17, no. 8: 334. https://doi.org/10.3390/fi17080334
APA StyleByrd, J., Upadhyay, K., Poudel, S., Sharma, H., & Gu, Y. (2025). A Blockchain and IoT-Enabled Framework for Ethical and Secure Coffee Supply Chains. Future Internet, 17(8), 334. https://doi.org/10.3390/fi17080334