A solar collector is a device that collects sunlight energy in order to provide heat for electricity generation or water and space heating.