Help with photoeye sensor wiring

We would like to use a photoeye to detect the presence of cells. The photoeyes available on the market typically run at DC voltages from 10VDC and up. Is there a way to wire these NPN/PNP sensors to the 5VDC GPIO input on the digital side car? Or does anyone know of a source for photoeyes that can run at 5VDC?