Photoelectric sub-/miniature sensors