The block sets the orientation of the robot to align the left and right movement of the robot in horizontal robot position and vertical robot position.
![](https://ai.thestempedia.com/wp-content/uploads/2022/03/Robo-Pet-2.gif)
The example demonstrates how to make a vertical robot pet that senses the hand on the IR sensor and acts accordingly.
Script
![](https://ai.thestempedia.com/wp-content/uploads/2022/07/Alert.gif)
Alert: You need to calibrate the IR sensor values to make this program run perfectly.
Output
Read More