We integrated distance sensors and connected them to the microcontroller for obstacle detection. We wrote code to read sensor data and verified the output using serial monitoring.Â