An automated lighting control system has been developed in the premises used for agricultural needs. An algorithm for the operation of the lighting system is presented. The setup of the light sensor in the OpenHAB is shown. The results of an experimental study are presented. The introduction of the developed control system will lead to saving energy resources and reducing economic costs.