Text this: Spectrum sensing algorithm based on average value of middle part of power spectral density