Cogitive radio networks (CRNs) require high capacity and accuracy to detect the presence of licensed or primary users (PUs) in the sensed spectrum. In addition, they must correctly locate the spectral opportunities (holes) in order to be available to nonlicensed or secondary users (SUs). In this research, a centralized network of cognitive radios for monitoring a multiband spectrum in real time is proposed and implemented in a real wireless communication environment through generic communication devices such as software-defined radios (SDRs). Locally, each SU uses a monitoring technique based on sample entropy to determine spectrum occupancy. The determined features (power, bandwidth, and central frequency) of detected PUs are uploaded to a database. The uploaded data are then processed by a central entity. The objective of this work was to determine the number of PUs, their carrier frequency, bandwidth, and the spectral gaps in the sensed spectrum in a specific area through the construction of radioelectric environment maps (REMs). To this end, we compared the results of classical digital signal processing methods and neural networks performed by the central entity. Results show that both proposed cognitive networks (one working with a central entity using typical signal processing and one performing with neural networks) accurately locate PUs and give information to SUs to transmit, avoiding the hidden terminal problem. However, the best-performing cognitive radio network was the one working with neural networks to accurately detect PUs on both carrier frequency and bandwidth.