// Forum: https://forum.arduino.cc/t/esp32s3-i2c-not-working/1244885
// This Wokwi project: https://wokwi.com/projects/394517050165987329

#include <Wire.h>

void setup() 
{
  Serial.begin(115200);
  Wire.begin();        // default SDA = 8, SCL = 9
}

void loop() 
{
  Serial.print("Scan: ");
 
  for(int address = 0x01; address < 0x7f; address++)
  {
    Wire.beginTransmission(address);
    int error = Wire.endTransmission();
    if (error == 0)
    {
      Serial.printf("0x%02X ", address);
    }
  }
  Serial.println();

  delay(2000);
}
GND5VSDASCLSQWRTCDS1307+