5G enhances IoT by improving connectivity and data transfer speeds for connected devices. This allows for real-time data collection and analysis, enabling smarter and more responsive devices and applications that can deliver personalized and timely information.