This project has some working code for communicating with a VCNL4000 with a Raspberry PI using Mono / .NET