We give a new distributed algorithm EasyMAC for the slot assignment for media access control (MAC) of nodes in a sensor network. Our algorithm reduces both the number of messages and the time required to complete the slot assignment compared to existing algorithms. We achieve this by maintaining additional information at each node about the collisions that it detects and sending that information to its neighbors.