Internet of Things (IoT) has rapidly expanded with the interconnection of various devices through wireless networks. However, this widespread deployment of IoT devices has posed challenges in managing access to device resources due to their vast quantity and scale. As these IoT devices generate and share sensitive data, ensuring secure access becomes paramount. Traditional access control systems like Discretionary Access Control (DAC), Intelligent Dynamic Bandwidth Access Control (IBAC), and Mandatory Access Control (MAC) have limitations such as centralization, single-point failure, and low throughput, making them less suitable for dynamic and diverse IoT environment. To address these challenges, Role-Based Access Control (RBAC) emerges as a promising solution as it provides fine-grained and dynamic access control based on user attributes, resource attributes, action attributes, environmental attributes, permissions, and environmental context. In parallel, Blockchain Technology (BCT) has gained attention as a distributed data management system, ensuring data integrity through decentralization, immutability, and consensus mechanisms. Kafka-based Hyperledger Fabric, an open-source blockchain platform, offers more efficient consensus mechanisms, higher throughputs, and support for multiple organizations and ledgers. This study proposes to develop a novel "KafkaIoT" system, which integrates Kafka-based Hyperledger Fabric with RBAC to create a distributed access control system for IoT. By leveraging blockchain's distributed architecture, KafkaIoT addresses the challenges of record tracking, dynamic access control management, and access control in the IoT landscape. The seamless integration of BCT with IoT can enhance security and enable the development of distributed IoT-based cryptocurrency services, contributing to a safer and more reliable IoT ecosystem.