Embedding reactive hardware agents into heterogeneous sensor networks.