Start: program start + forever
A sensor has to be read again and again. First put the yellow "when program starts" block, attach "forever" under it, and put "wait 0.1 seconds" inside, so it reads every 0.1 seconds.
- Open the official LEGO SPIKE App, start a new project and choose "Word Blocks".
- From "Events", drag out "when program starts". From "Control", drag "forever" and attach it underneath.
- Drag a "wait 1 seconds" block into forever and change the number to 0.1.