Averaging the sines of the inputs and taking the inverse sine of the result can't give you a sensible answer, since the range of the inverse sine function is $180^\circ$ rather than $360^\circ$.
You probably want to take the magnitude of the wind into account. For example, if you have a wind blowing to the east (at $0^\circ$) at 10 mph for half the time and to the north (at $90^\circ$) at 2 mph half the time, the average probably shouldn't be $45^\circ$ but something much closer to $0^\circ$.
A good solution would be to take the vectors of wind direction, add them all together and divide by the number of samples. For example, in the above case the average speed would be
$$\frac{(10,0) + (0,2)}{2} = (5,1)$$
which, if we plug it into the atan2 function gives a wind direction of $11.31^\circ$, or just slightly north of east. This method also has the nice property that it generalizes easily to higher dimensions which, though it might not be relevant for your work, is often an indicator that you're on the right track.