RTFM once again.

Well, DIV32 is the magic trick.

I used a dummy var to make the sensor*1023 multiplication, saved the 1023-offset to range variable and did a div32 range.

Solved.

Ioannis