Report the tilt (from 0 to 4) detected by the LEGO WeDo tilt sensor

tilt reports a value of 1-4 when the sensor is tilted, and 0 otherwise.

The tilt sensor reports a number from 0 to 4. 0 means not tilted, 1 tilted down, 2 tilted right, 3 tilted up, and 4 tilted left.

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

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