An optical fiber assembly includes a central optical fiber core having a longitudinal axis surrounded by a cladding layer along the longitudinal axis, a distal end portion and a proximal end portion; it further comprises a layer of a material at least partially surrounding the cladding layer; the layer of material may be light-sensitive; and, at least two electrodes may be embedded at least partially along the longitudinal axis within the layer of light-sensitive material. The light-sensitive material may be a photoresist material, and the photoresist material characteristics change proportional to the amount of light impinging on the photoresist material. These characteristics may include one or more of electrical resistance changes or voltage changes.