The Department of Meteorology has issued a yellow warning for extreme heat, with temperatures in inland areas expected to reach around 40 degrees Celsius.