configuring photocells