Harnessing the potential of IoT for quality control in manufacturing