Smart Partitioning and IoT System Development