A heatwave is when maximum and minimum temperatures stay unusually high for 3 or more days.
This is compared to the local climate and past weather.
It takes more than a high daily maximum temperature to make a heatwave. It's also about how much it cools down overnight.