The problem to be solved is finding the closest actuator to respond to an event, and assign a task to it. This problem is sometimes called the task assignment or task allocation problem. The input of the problem is the information about an event (location, response time etc.), and the output is a task, assigned to the best actuator. The new algorithm, proposed in this paper, consists of two parts. First, we find the candidate for the closest actuator by using iMesh. Then, in the second phase, we try to find a closer actuator (if possible) by using auctions, and consequently improve the basic iMesh in terms of the success rate in finding the closest actuator.