In this lesson we use Ultrasonic Sensor in our Smart Car project. This is lesson 4 of Smart car where we measure the distance and if distance is greater than 25cm, the car moves forward, if between 2 to 10cm, it goes backwards and less than 25 it will stop. There was two errors in code which explained, wiring and code fully explained and at the end the project is demonstrated.
![](https://25tc33.p3cdn1.secureserver.net/wp-content/uploads/2023/01/Dingtalk_20230105175515.jpg?time=1722041003)