Start: when program starts + forever
You read a sensor 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 s.
- Open the LEGO SPIKE App, make 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.