Auxin. Cells on the plant that are farthest from a light source have a chemical called auxin cause the cells to elongate. The plant bends towards the light.
Auxin causes plants to respond positively to sunlight because these are chemicals in plants that are far from a light resource, which causes the plant to bend towards the sun.