VCNL4010 Reading Proximity Data

Hello!

The VCNL4010 proximity sensor example code prints out Proximity Data and Ambient Data. I am trying to convert the current units they're in to inches, and was hoping to save the "proximity" data as a variable but am having trouble.

Any advice?

I tried the following:

prox = vcnl.readProximity()