Help translate the code into the environment XOD

help translate code from this force to XOD 3D filament meter caliper Arduino i2c tutorial
since I am new to this field and I really need to understand what this code will look like in XOD so that I can then edit it to my needs