An adaptive low power schedule for wireless sensor network