The radio-frequency spectrum shortage, which is primarily caused by the fixed allocation policy, is one of the main bottlenecks to the deployment of existing wireless communication networks, and to the development of new ones. The dynamic spectrum access policy is foreseen as the solution to this problem, since it allows shared spectrum usage by primary licensed and secondary unlicensed networks. In order to turn this policy into reality, the secondary network must be capable of acquiring reliable, real-time information on available bands within the service area, which can be achieved by means of spectrum sensing, spectrum occupancy databases, or a combination of them. This Review presents guidelines related to the design of a framework that can be adopted to foster dynamic spectrum access policies. The framework applies special-purpose Internet of Things (IoT) devices that perform spectrum sensing, subsequently feeding a spectrum occupancy database, which in turn will be used by the secondary network to gather information on location-dependent spectrum availability. The guidelines address technological enablers capable of making the framework feasible, reliable and secure.