Techniques to Reduce Communication andComputation Energy in Wireless Sensor Networks