Arduino Distance Sensor Script

You can buy the 4-leg sensor shield that is compatible with Arduino, to detect and measure the distance of any obstacles that may block your Arduino car.   For connecting to your existing Raspberry Internet Rover, you can find any 2 spares of the pins. This examples uses 12 (trigger), 13 (echo), voltage…