I have a problem with; class ultrasonic 'has no member named ranging

mark error and try a lot with several libraries and do not want to know if I’m doing something wrong or something but I mark that error and I can not fix it

#include <Servo.h>
#include <Ultrasonic.h>

Ultrasonic ultrasonic(3,5);
Servo miniservo1;
Servo miniservo2;
int led=7;
int distancia;

void setup()
{
miniservo1.attach(11);
miniservo1.write(0);

pinMode(led, OUTPUT);
}

void loop()
{

distancia = ultrasonic.ranging(CM);

if(distancia <= 20)
{

miniservo1.write(180);

digitalWrite(led, HIGH);
delay(500);
}else{
miniservo1.write(0);

digitalWrite(led, LOW);
}
delay(500);
}

There are multiple libraries for ultrasonics on the Arduino. Where did you get yours from?

What makes you think that you can do this?

distancia = ultrasonic.ranging(CM);

I downloaded them from different sites, and the program did not work for me and I downloaded it from a video, and in the video it is the same and if it works.

No links to the library. No links to the video. No help from me.

Was it this video? HC-SR04: Sensor ultrasonico para Arduino - YouTube