This document proposes an adaptive mobility-aware medium access control (MAC) protocol called MMAC-SW for wireless sensor networks. MMAC-SW uses a hybrid TDMA/CSMA approach and incorporates sleep-wake cycling to improve energy efficiency. It dynamically adjusts the frame length based on a mobility prediction model to adapt to changing network conditions. Simulation results show that MMAC-SW outperforms the baseline MMAC protocol in terms of energy consumption, packet delivery ratio, and average packet delay.