Can you go home if your workplace is too hot?

The warm weather looks set to continue.
The warm weather looks set to continue.

Much of the country has been enjoying hot weather and sunshine over the last few days.

But what are your rights when it comes to working in hot weather?