Getting Started Guide

SCRATCH CODING KIT
Drone Coding Activity
Coding a Drone
Now think of this code as two separate parts. Your program must be activated when the infrared sensor is pressed
and released. The “waiting” block is used in this situation.
The first waiting block pauses the program until the infrared sensor is pressed. Once it is pressed, the first waiting
block moves out of the way.
But, the second waiting block obstructs the program until your hand is released from the infrared sensor.
Check out the codes below!
start
program
wait until the
left infrared is
pressed.
activate the
other programs
wait until the
left infrared
sensor is
released.