Energetic cosmic rays impinging on the atmosphere create a particle avalanche called an extensive air shower. In the leading plasma of this shower electric currents are induced that generate radio waves which have been detected with LOFAR, a large and dense array of simple antennas primarily developed for radio-astronomy observations.LOFAR has observed air showers under fair-weather conditions as well as under atmospheric conditions where thunderstorms occur. For air showers under fair-weather conditions the intensity as well as the polarization of the radio emission can be understood rather accurately from the present models.For air showers measured under thunderstorm conditions we observe large differences in the intensity and polarizatio...