Automatic trash can

Hi I am newbie into this arduino thingy. Can anyone teach me how to change the angle and speed of the servo motor in this coding.

autotrashcan_ino.ino (933 Bytes)

autotrashcan_ino.ino (933 Bytes)

autotrashcan_ino.ino (933 Bytes)