Using fibre optics for photoelectric sensing