The maximum temperatures inland are expected to reach 40C on Thursday, according to the Department of Meteorology.