Lakon: a middle-ground approach to high-frequency data acquisition and in-network processing in sensor networks