Sensors are an important component of building a robot. Knowing the distance to an obstacle in front of the robot is extremely useful. For example to avoid a collision. An electronic compass and GPS is not sufficient to avoid a collision. I have thus experimented with several distance proximity sensors.
The Arduino NANO has pins A4 and pin A5 for the i2C SDA and SLC connectors.
Image developed using Fritzing