The lighting was switched on and off by a device linked to a chicken perch-as the chickens went to roost in the evenings the lights were turned on, and when the chickens left their roost in the mornings the lights were switched off again.
The lighting was switched on and off by a device. This device was linked to a chicken perch. The lights were turned on. The chickens went to roost in the evenings. The lights were switched off again. The chickens left their roost in the mornings.