The variable that was controlled in the experiment is amount of water.
The student ensured that each tomato plant received the same amount of water and fertilizer each day, which makes water a controlled variable. The sweetness of the fruit and the number of leaves are the variables being measured, while the hours of sunlight differ for the plants and are the independent variable being manipulated.