High-energy cosmic rays, impinging on the atmosphere of the Earth initiate cascades of secondary particles, the extensive air showers. The electrons and positrons in the air shower emit electromagnetic radiation. This emission is detected with the LOFAR radio telescope in the frequency range from 30 to 240 MHz. The data are used to determine the properties of the incoming cosmic rays. The radio technique is now routinely used to measure the arrival direction, the energy, and the particle type (atomic mass) of cosmic rays in the energy range from 1017 to 1018 eV. This energy region is of particular astrophysical interest, since in this regime a transition from a Galactic to an extra-galactic origin of cosmic rays is expected. For illustratio...