Question: how arduino works in iot?
Answer: Arduino is a platfrom on which you can mount sensors and fetch the sensors data from it. You can attach Xbee with it so wireless data transfer will possible with it. But if you want to use Arduino as an IoT device you have to use Arduino shield or so many other options for connecting with cloud.