Users Manual

CLASS 2
26
Using the windmill and the button sensor
Now, we are going to activate the windmill with the button sensor.
First, we need a way to bring “True” and “False” from the button sensor to Scratch. To do this, go to the ‘movement’
tab and drag in the ‘is sensor digital 2 pressed?’ block to the script.
This ‘is sensor digital 2 pressed?’ block shows if the value is ‘true’ or ‘false’.
Is the sensor ‘digital2’ pressed?
Experiencing the button sensor