Mitigating the Effect of Interference in Wireless Sensor Networks