Comprehensive Review: Recent Advancements and Applications of Cyber-Physical Systems for IoT Devices