Getting Started Guide
SCRATCH CODING KIT
Using IR sensor
Infrared (IR) Sensor Coding Experience
Now, let's turn on the main cell, go scratch and see how the sensor gives us information.
If everything is connected properly, cover the infrared sensor with your hands and remove it.
If Digital2 is true, there is light reflection, and if Digital2 is false, there is no light reflection.
If the infrared sensor is
still present, "Digital2"
will be 'false'.
If the infrared sensor is
covered by your finger,
"Digital2" will be 'true'.