I commented that line out in the cpp file and the example code runs fine. I know that is not a best practice but for now it gets me going. Are you the author of that code ? sfeQwiicUltrasonic.cpp Perhaps they may know what that line does or references. thanks