photo sensor and arduino

if you mean a photo resistor (LDR) then you need to hook it up as a voltage divider with the help of an extra resistor an use it with an analog in pin onte Arduino board.

This site (scroll down quite a bit) shows how to do it

Lots of other good Arduino stuff there as well