photosensor datasheet and arduino code spi update to make libraries work