Using IoT technology, we can intelligently control and manage different parts of a city, industry, and home. One of the important goals of smart homes is to have more control and security in a home. One of the protocols used in IoT applications in smart homes is the Zigbee communication protocol. The Zigbee, as a high security standard, requires low bandwidth for smart homes. In wireless sensor networks, the main reason for nodes failure is their battery drain. Energy efficiency is a critical issue in wireless sensor networks. Therefore, the use of efficient programs and algorithms for optimal energy consumption is the most important issue. In this study, a fuzzy multi-channel media access control protocol is introduced which the sleep times of the nodes as well as the nodes' meeting together are optimized for data aggregation, adaptably and asynchronously. By using multiple channels, it reduces collision and concurrent transmission in the domain of node collision and thus increases the efficiency of packet forwarding rates on the network. A method similar to the AS-MAC method was chosen to better evaluate the proposed method, network structure, and energy consumption model. Simulation results show the effectiveness of the proposed method.