Abdulaziz14:
That is the provided code and this what they said about it Using an I2C‑MaxSonar with an Arduino – MaxBotix
Wire has setClock. try setClock(50000) or setClock(400000) after Wire.begin().
Abdulaziz14:
That is the provided code and this what they said about it Using an I2C‑MaxSonar with an Arduino – MaxBotix
Wire has setClock. try setClock(50000) or setClock(400000) after Wire.begin().