Add the MBC extension and wire it up
The micro:bit does not know the Ranger yet. After you add the MBC extension, an "MBC Sensors" category appears, and the Ranger blocks are in its "Distance" group (the ones that say "2-ch" are for this sensor). Pick your micro:bit version first; the hardware check below changes with it.
- Open MakeCode and click "New Project".
- At the bottom of the toolbox, click "Advanced" → "Extensions".
- Paste
https://github.com/contactmbcrobot/pxt-mbc-sensorsinto the search box, press Enter and click mbc-sensors. - The blocks are in English. (Traditional Chinese is also included in the extension.)