Photocell circuit principle