Cognitive capabilities are indispensable for the Internet of Things (IoT) not only to equip them with learning, thinking, and decision-making capabilities but also to cater to their unprecedented huge spectrum requirements due to their gigantic numbers and heterogeneity. Therefore, in this paper, a novel unified channel management framework (CMF) is introduced for cognitive radio sensor networks (CRSNs), which comprises an (1) opportunity detector (ODR), (2) opportunity scheduler (OSR), and (3) opportunity ranker (ORR) to specifically address the immense and diverse spectrum requirements of CRSN-aided IoT. The unified CMF is unique for its type as it covers all three angles of spectrum management. The ODR is a double threshold based multichannel spectrum sensor that allows an IoT device to concurrently sense multiple channels to maximize spectrum opportunities. OSR is an integer linear programming (ILP) based channel allocation mechanism that assigns channels to heterogeneous IoT devices based on their minimal quality of service (QoS) requirements. ORR collects feedback from IoT devices about their transmission experience and generates special channel-sensing order (CSO) for each IoT device based on the data rate and idle-time probabilities. The simulation results demonstrate that the proposed CMF outperforms the existing ones in terms of collision probability, detection probability, blocking probability, idle-time probability, and data rate.