C. the amount of water and sunlight each plant received
This factor, along with soil nutrients, can significantly affect plant growth and height. If Robert's plants did not receive consistent care in terms of water and sunlight, it might obscure any genetic relationships regarding height that he was trying to observe.