Reactive Sensor Networks