Arduino Nano outputting crap with MPU-6050 it only shows ? and x's

So, I wired my arduino nano to the mpu 6050 and I used the example code from the libary and it only outputted ? and x's.

My wirings:
3.3 -> VCC
Gnd -> Gnd
A4 -> SDA
A5 -> SCL

// Basic demo for accelerometer readings from Adafruit MPU6050
#include <Adafruit_MPU6050.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>

Adafruit_MPU6050 mpu;

void setup(void) {
  Serial.begin(115200);
  while (!Serial)
    delay(10); // will pause Zero, Leonardo, etc until serial console opens

  Serial.println("Adafruit MPU6050 test!");

  // Try to initialize!
  if (!mpu.begin()) {
    Serial.println("Failed to find MPU6050 chip");
    while (1) {
      delay(10);
    }
  }
  Serial.println("MPU6050 Found!");

  mpu.setAccelerometerRange(MPU6050_RANGE_8_G);
  Serial.print("Accelerometer range set to: ");
  switch (mpu.getAccelerometerRange()) {
  case MPU6050_RANGE_2_G:
    Serial.println("+-2G");
    break;
  case MPU6050_RANGE_4_G:
    Serial.println("+-4G");
    break;
  case MPU6050_RANGE_8_G:
    Serial.println("+-8G");
    break;
  case MPU6050_RANGE_16_G:
    Serial.println("+-16G");
    break;
  }
  mpu.setGyroRange(MPU6050_RANGE_500_DEG);
  Serial.print("Gyro range set to: ");
  switch (mpu.getGyroRange()) {
  case MPU6050_RANGE_250_DEG:
    Serial.println("+- 250 deg/s");
    break;
  case MPU6050_RANGE_500_DEG:
    Serial.println("+- 500 deg/s");
    break;
  case MPU6050_RANGE_1000_DEG:
    Serial.println("+- 1000 deg/s");
    break;
  case MPU6050_RANGE_2000_DEG:
    Serial.println("+- 2000 deg/s");
    break;
  }

  mpu.setFilterBandwidth(MPU6050_BAND_21_HZ);
  Serial.print("Filter bandwidth set to: ");
  switch (mpu.getFilterBandwidth()) {
  case MPU6050_BAND_260_HZ:
    Serial.println("260 Hz");
    break;
  case MPU6050_BAND_184_HZ:
    Serial.println("184 Hz");
    break;
  case MPU6050_BAND_94_HZ:
    Serial.println("94 Hz");
    break;
  case MPU6050_BAND_44_HZ:
    Serial.println("44 Hz");
    break;
  case MPU6050_BAND_21_HZ:
    Serial.println("21 Hz");
    break;
  case MPU6050_BAND_10_HZ:
    Serial.println("10 Hz");
    break;
  case MPU6050_BAND_5_HZ:
    Serial.println("5 Hz");
    break;
  }

  Serial.println("");
  delay(100);
}

void loop() {

  /* Get new sensor events with the readings */
  sensors_event_t a, g, temp;
  mpu.getEvent(&a, &g, &temp);

  /* Print out the values */
  Serial.print("Acceleration X: ");
  Serial.print(a.acceleration.x);
  Serial.print(", Y: ");
  Serial.print(a.acceleration.y);
  Serial.print(", Z: ");
  Serial.print(a.acceleration.z);
  Serial.println(" m/s^2");

  Serial.print("Rotation X: ");
  Serial.print(g.gyro.x);
  Serial.print(", Y: ");
  Serial.print(g.gyro.y);
  Serial.print(", Z: ");
  Serial.print(g.gyro.z);
  Serial.println(" rad/s");

  if(a.acceleration.z >=6)
  {
    Serial.println("Oh No");
  }

  Serial.println("");
  delay(250);
}

The output:
x⸮xxxx⸮⸮⸮⸮⸮xx⸮⸮⸮⸮⸮xxxxx⸮⸮⸮⸮xxxxxxx⸮⸮⸮⸮xxxx⸮⸮⸮⸮x⸮⸮xx⸮⸮x⸮⸮xxxx⸮x⸮x⸮x⸮x⸮⸮⸮⸮⸮⸮⸮xx⸮x⸮ and there is no pattern that I can see.

I also already set the bandwidth to be the same as what it said which is 115200.
I am new so if there is any obious problems not contrubuting to the problem please tell me also.

Hi! Welcome to the Forum.

Please ensure your serial monitor has the same speed...

It does have the same speed, and I do have some basic knowledge but nothing too fancy. ( it was also said in the post that I already did that...)

doesn't seem like an mpu6050 problem. have you gone back to just the "hello world" program?

It also outputs crap

then the issue is with the serial interface.
how about changing both to 9600?

I also did that before and the serial just outputs faster but it still gave the same output

A lower baud rate will output data slower, not faster

seems like a very fundamental feature is broken on your setup.

are you sure the problem is being compiled successfully and downloaded sucessfully? can you try turning LED_BUILTIN on/off every second?

that's weird because I saw that it went faster

how can you tell if it's crap ??

It does work

What type of Nano?

I recorded a video but I can't send it :frowning:

Is anything else connected to RX/TX pins of your Nano?

On the back it said V3.1 328P-LQFP32 but I think that it is not a offical nano.

No, nothing was connected

I think @J-M-L found the problem. It seems to me that you have a Nano with the LGT8F chip instead of the traditional ATmel 328P. If confirmed, this will require installing an additional board in your IDE and maybe some adjustments on the chip speed.

Oh, thank you @J-M-L

Which one do I need to specifically install? I wasn't able to find any in the normal board manager.