June’s record-breaking heat wave left more than 40 million Americans sweltering in temperatures over 100 degrees Fahrenheit. Some places reached 120 F, and energy grids were struggling to keep people…