Toby -
Check out Bruce's site for some good write ups on how to use A/D converters.... http://www.rentron.com/PicBasic1.htm
That will show you a couple of different ways of doing it.