A Photosensor Array for Spectroscopy