Understanding the Environment through Wireless Sensor Networks