I think you mean "intermediate value theorem" rather than "mean value theorem".

Suppose that the temperatures at the four vertices are , with . If then (by the intermediate value theorem) there are points on the edges and where the temperature is . If then we already have three points where the temperature is the same.

That leaves us with the case . In that case, choose with , and check that the edges each have a point where the temperature is .