Report the distance (from 0 to 100) detected by the LEGO WeDo distance sensor

The distance sensor detects the surrounding brightness to report distance, so you can actually use it to detect light and motion in addition to distance.

To view the value of distance, click the checkbox next to the block in the palette.

To use distance, you need a distance sensor connected to your computer via a LEGO WeDo hub.