01
Learn how to use the Colour Sensor.
02
Plug the Motor into Port A.
Plug the Colour Sensor into Port B.
03 - Ghost program
![Color_sensor_red.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltb2386bf7409ff20c/5fe0646a8884c20ac3ca3e39/Color_sensor_red.png?locale=en-gb&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
Create the program that uses the Colour Sensor to make the motor turn.
04
![Color_sensor_red.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltb2386bf7409ff20c/5fe0646a8884c20ac3ca3e39/Color_sensor_red.png?locale=en-gb&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
Press the Play Button to run the program.
05
Hold a red brick in front of the Colour Sensor. Watch the motor turn.
06
![Colorsensor_icon.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltd0ec09f613b81a57/5fe0647ab721aa1cd8dc1890/Colorsensor_icon.png?locale=en-gb&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
Change the colour on the programming block from red to yellow. The Colour Sensor will now react to a yellow brick.
07
Press the Play Button and use a yellow brick to test the Colour Sensor.