Arduino Servo.h library returns error in compilation
Servo is a class not an object. You have to instantiate it, and then call the functions on the instance. For example:

#include &lt;Servo.h&gt;

Servo sv;

void setup() {
  sv.attach(9, 554, 2400);
}

void loop() {
  sv.write(2000);
}


(Unlike some other libraries, it's done this way so that you can use more than one servo at the same time. You'd make one instance for each servo you want to control.)