error: expected primary-expression before '.' token

I am not sure how you installed the PID library but if it was done using the Library Manager in the IDE then you may or may not have seen PID Library which has explanations of the functions available and their parameters