An apparatus and method for retracting an awning. A sensor detects an awning acceleration caused by wind impacting the awning, and generates a signal having an amplitude corresponding thereto. When the signal exceeds a certain threshold, the awning is retracted. The signal's amplitude may be converted into a frequency, and the frequency compared to the threshold. The signal typically must exceed the threshold for a set period of time to trigger awning retraction. A second threshold may dictate a maximum instantaneous or peak acceleration; when the signal exceeds this second threshold, regardless of the duration during which the second threshold is exceeded, the awning is retracted.