Pattern-MAC (PMAC) protocol, instead of having fixed sleepwakeups, the sleep-wakeup schedules of the sensor nodes are adaptively determined. The schedules are decided based on a node’s own traffic and that of its neighbors.