How to interface with Kingbright colour sensor KPS-5130PD7C

First colours interpreted! Naff accuracy and sensitivity so far, but I'm impressed with how easy Arduino and Processing make things.