Find a way to remove heat and find a way to pull air in... I use a tent and use a 4.5" axial fan during lights on to push air into the tent and have exhaust running 24/7, temps run 85 max 76F low
Ive read that its healthy for a 10 degree swing between lights on and off but try not to exceed 80degrees when the lights are on and dont let it drop below 60 when there off.
Optimally 66-68 at night 75-77 day cycle but if you run CO2 or have certain strains you might be safe around 78-85 during the day cycle. I tweaked my tent to get it at a stable 77 degrees in the flower tent where i run Co2 that way when the fans go off it goes up to about 80-81 for co2 saturation. ive heard with Co2 can go 85-90 degree but i have some hazes and they dont like extreme temps.