01
Learn how to use the Gyro Sensor.
02
Inside the Hub, there’s a built-in Gyro Sensor. It can register movement and tilts.
03
Plug a motor into Port A.
04 - Ghost program
![Hub_and_Motor_isolated_large.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltd58779194299e1db/5fe0647cb80b0a1a68f9f75d/Hub_and_Motor_isolated_large.png?locale=en-gb&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
Create the program that uses the Gyro Sensor to make the motor turn.
05
![Hub_and_Motor_isolated_large.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltd58779194299e1db/5fe0647cb80b0a1a68f9f75d/Hub_and_Motor_isolated_large.png?locale=en-gb&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
Test the program that makes the motor turn.
06
Tilt the Hub to the right. The motor is turning.
07
![Gyroleft_Icon.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blt47a591bba1244736/601277a10a80720ff10f42a7/Gyroleft_icon.png?locale=en-gb&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
Change the program to make the motor rotate when the Hub is tilted to the left.
08
Press the Play Button and test the program to make the motor turn.