Abstract—The Performance of Energy Detection (ED) spectrum sensing technique depends on threshold selected for deciding the presence or absence of Primary User. In practice, noise density is uncertain and can affect the performance of ED in that sometimes presence of signals is confused for their absence (noise) and vice versa. The traditional energy detection algorithm was based on fixed threshold and has been observed to be inefficient under noise uncertainty. The technique requires optimizing the threshold to be more flexible to check the noise uncertainty effects. The paper therefore proposed an algorithm relative to a unique environment which in effect considered the dynamism relatively and dependent on the environment. The results obtained demonstrated significant improvement compared to the traditional energy detection system