Getting Started Guide

SCRATCH CODING KIT
Ultrasonic Sensor Coding Experience
Ultrasonic Sensor Analog Value
If you leave the
ultrasonic sensor, you
can see the value of
"Analog0".
As you get closer to the
ultrasonic sensor, you
can see that the value of
"Analog0" decreases
Unlike the sensors you learned earlier, ultrasonic sensors do not cover or press them by
hand, but they use values based on distance, making it difficult to use them as digital values.
Therefore, ultrasonic sensors are often used as analog values for distance. Confirm that the
value gets lower when the distance between the ultrasonic sensor and the object is lower,
and higher when the distance from the object is longer!