An electricity generation method using orientable photovoltaic sensors disposed above crops, a shadow projected onto the crops being altered by changes in an orientation of the sensors. The orientation of the sensors is controlled in a computerized and automatic manner in order to affect microclimatic conditions of the crops by changing the orientation of the sensors, in particular in order to place crops in microclimatic conditions more suited to obtaining a desired agricultural result, while seeking to achieve an optimum, reducing electricity generation as little as possible in relation to a reference that is not combined with crops.