Internet of Things (IoT) and its application in Industry 4.0