Hi mate,
Did you manually install the wiring + pan and tilt library?
Can you dump the entire code please.