Getting Started Guide
CLASS 3
12
Infrared (IR) Sensor Coding Experience
We will use the infrared sensor to operate the mini windmill. First, we need a way to get the "true" and "false"
values of an infrared sensor with scratches. To do this, go to the Motion tab and import the "Sensor digital 2
pressed" block into the script as shown below.
Using an infrared sensor with a mini windmill