Ranger 8-Way (TOF8) × Makeblock (mBot) + mBlock 5
Using the Ranger 8-Way (TOF8) with Makeblock (mBot) + mBlock 5: check the edition and the wiring, then pick your software; its page covers that software only.

Which edition
Get the MakeBlock edition (RJ25 plug) and plug it into an RJ25 port of mBot / Ranger / Orion / MegaPi; usable ports per board are listed in MakeBlock extension.
Wiring
② Pick your software
Interactive tutorialmBlock
No hub needed: click through it in your browser. Pick a function on the left, watch the code or blocks build up on the right, and drag the simulated sensor to see the values.