Decentralized, Adaptive Resource Allocation for Sensor Networks