The invention relates to a method of and a device for controlling a shed lighting, and a shed provided therewith. To support daylight, lamps are switched on, but only in the case when the measured intensity is too low and, moreover, the time in which the daylight intensity could become sufficient is too short to achieve a desired period of time with a minimum light intensity. This saves energy and service life of lamps.