Nowadays, the emergence of IoT devices has wholly revolutionized the customer's communication habits. The information can be collected at anytime and anywhere. However, the mobility of communication devices in a dense network results in an unbalanced network load and an increase in bandwidth demands. To address these issues, this study proposed a load balancing algorithm based on SDN for enhancing the performance of mobile IoT devices communication over a Wi-Fi network. The use of the SDN makes possible the automatic configuration of the network through a centralized controller, it provides programmability, a global view of the network, it also optimizes resource allocation based on real-time network information that helps implement our algorithm. The proposed algorithm is evaluated through simulation using mininet. The results indicate that our proposed method provides an efficient network load balancing and improves the throughput of associated devices.