A lot of research effort has been put into wireless sensor networks (WSNs) and several methods have been proposed to minimize the energy consumption and maximize the network's lifetime. However, little work has been carried out regarding WSNs deployed for emergency situations. We argue that such WSNs should function under a flexible channel allocation scheme when needed and be able to operate and adapt in dynamic, ever-changing environments coexisting with other interfering networks (IEEE 802.11b/g, 802.15.4, 802.15.1). In this paper, a simple and efficient method for the detection of a single operational frequency channel that guarantees satisfactory communication among all network nodes is proposed. Experimental measurements carried out in a real environment reveal the coexistence problem among networks in close proximity that operate in the same frequency band and prove the validity and efficiency of our approach.