Download Arduino Uno Pinout I2C Gallery. Some arduino models use different pins for the i2c connections, if you are not using an uno then check which pins you need to use. On the arduino boards with the r3 layout (1.0 pinout), the sda (data line) and scl (clock line) are on the pin headers close to the aref pin.

How I2c Communication Works How To Use It With Arduino
How I2c Communication Works How To Use It With Arduino from howtomechatronics.com
I too wasted hours and started suspecting ii'm looking in the wrong place so did a search for i2c nano problem that took me here. Maybe it is because many of the pinout diagrams for the nano have scl and sda on the wrong pins. For both boards they are connected to the correct pins.

I see on arduino uno there is twice sda and sdl:

I see on arduino uno there is twice sda and sdl: This arduino uno pinout diagram reference will hopefully help you get the most out of this board. On the arduino boards with the r3 layout (1.0 pinout), the sda (data line) and scl (clock line) are on the pin headers close to the aref pin. There are pins with secondary functions as listed below.