This summer, millions of people across the country have been digging out sunscreen to protect themselves from a record-breaking series of heat waves.