Note: The laser sensor that comes with the MATRIX Future Innovators Set is version 2 (V2). If you're using the older version (V1), just make sure to use the block that's made for the V1 laser sensor so everything works correctly.
Sample Code
Hardware Connection: Connect Laser Sensor to the I2C1 port of the MATRIX Mini R4.
Result: The Laser Sensor value will be shown on the OLED from 50mm to 1200mm.