A cell specialized to detect and transduce light. [ MESH:D010786 ]