servo Program Error

Hello,
I want to move my servo to specific angle at certain conditions. Here is the error message

Arduino: 1.6.13 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

F:\D drive\My junk\project\PICS\Codes\PICS_Plant_Intensive_Care_System\PICS_Plant_Intensive_Care_System.ino: In function 'void setup()':

PICS_Plant_Intensive_Care_System:35: error: 'servo1' was not declared in this scope

servo1.attach(servoPin);

^

F:\D drive\My junk\project\PICS\Codes\PICS_Plant_Intensive_Care_System\PICS_Plant_Intensive_Care_System.ino: In function 'void loop()':

PICS_Plant_Intensive_Care_System:76: error: 'servo1' was not declared in this scope

servo1.write(35);

^

'servo1' was not declared in this scope

servo1.write(125);

^

exit status 1
'servo1' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

i have also attached the piece of code

Error.png

'servo1' was not declared in this scopeError messages don't get much clearer than that.

Thanks but the prob is solved and there were some bugs in the IDE i reinstalled it.