Squash generally needs a lot of sunlight, so it is generally advised to keep it in sunlight for six hours. But remember that too hot a temperature might stress the plant and cause it to deteriorate.