Audomatic Garage Door Close

Would it cause issues running through it 40 times in setup?

No, it'll be do exactly the same as it was before, except it won't have to check to see whether to calibrate on every iteration of loop.

Come to that, the for loop should be in the calibrate routine itself, rather than calling it 40 times.