How does Wind Energy Work?

Wind is direct effect of heat of sun. When a place gets heated, air there gets less dense.Air from high density side flows rapidly which is known as Wind.