On the Planning of Wireless Sensor Networks