The state’s weather-related illness dashboard reported 31 deaths in July, which started off with a major heatwave and several 100-degree days.