Question: what is the relationship between the greenhouse effect and sunlight?
Answer: In the daytime, sunlight shines into the greenhouse and warms the plants and air inside. At nighttime, it's colder outside, but the greenhouse stays pretty warm inside. That's because the glass walls of the greenhouse trap the Sun's heat. The greenhouse effect works much the same way on Earth.