A market based approach for sensor resource allocation in the grid