I'm trying to compile a simple sketch to control a micro servo but I get the following error in compilation time
/home/rodrunner/Arduino/sketch_jul03a/sketch_jul03a.ino:1:19: fatal error: Servo.h: No such file or directory
#include <Servo.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
The sketch was just copied from the arduino samples, my source code begins like this:
#include <Servo.h>
Servo myServo;
int flexSensorPin = 0; //analog pin 0
int flexSensorReading // Value read from analog pin A0
I can't see what is wrong. Maybe I need to change some path in the preferences? I'm using Arduino IDE 1.8.5