Help me with this source code...LV EZ1 Sensor

// max vslue 2.55v = 2.55/5 *1024 - 1 = 522, resolution = 10mV/ inch, 10m/5*1024 =~ 2
What actually this mean???
What i understand is...2.55v is max analog output voltage...
Why it must divided to 5, then times with 1024????
So, this output distance mesured by pic is in inch or meter??
Please help me...I found this coding comment in cytron project PR23..
Thanks for any helps...
What actually this mean???
What i understand is...2.55v is max analog output voltage...
Why it must divided to 5, then times with 1024????
So, this output distance mesured by pic is in inch or meter??
Please help me...I found this coding comment in cytron project PR23..
Thanks for any helps...