![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/tinker.png)
First Step
Open TinkerCode app in your browser
Click here to go to TinkerCode app!
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/2-us.png)
Second Step
Go to Base Controller and choose Setup/Arduino loop
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/3-us.png)
Third Step
Click on variable and create variable name
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/4-us.png)
Fourth Step
Drag the range and characters variable block to the base block
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/5-us.png)
Fifth Step
Go to Robot Kit and choose Maker Kit Nano
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/6-us.png)
Sixth Step
Drag ultrasonic sensor to the coding space
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/7-us.png)
Seventh Step
Choose Base Controller and select “Print new line data on serial port:”
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/8-us.png)
Eight Step
Delete ” ” column in the block line
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/9-us.png)
Ninth Step
Replace with range block from variable
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/10-us.png)
Tenth Step
Select loops and drag delay to the block
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/11-us.png)
Eleventh Step
Set both of pin number for ultrasonic
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/12-us.png)
Twelfth Step
Set output as number
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/13-us.png)
Thirteenth Step
Plug in the USB cable
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/14-us.png)
Fourteenth Step
Update board type and port by clicking on configuration button
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/15-us.png)
Fifteenth Step
Upload the code and wait until finish uploading
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/16-us.png)
Final Step
To monitor the result, select “serial dashboard”
![](https://thinkerspace.my/makerkit/wp-content/uploads/2021/03/result-2.png)
The Result
Showing is the range object from the ultrasonic sensor