Communication between IoT devices and the internet works through various protocols and technologies. IoT devices are equipped with communication devices such as Wi-Fi modules, Bluetooth, or cellular connectivity, which enable them to connect to the internet and exchange data with other devices or servers.