Photocell sensor block diagram