Using a sensor with octave and arduino

Problem description

-I want to be able to control an ultrasonic sensor in octave with the arduino package, but it is making me very complicated. any ideas that they can give me.
-This is the error that the command window throws me:
error: arduino: not configured with library “Ultrasonic” - please rerun arduinosetup with library, or
set forcebuild.

My system

  • OS: e.g. Windows 10 (version 2004) or Ubuntu 20.04
  • Octave version: e.g. Version 6.2.0
  • Installation method: e.g. Downloaded and installed “octave-6.2.0-w64-installer.exe” from text

When you create the arduino object, check what libraries are listed in the libraries property.

I am guessing that it does not list ultrasonic sensor.

So you have to rerun arduinosetup to install that package on the arduino:

arduinosetup("libraries", "Ultrasonic")