Trouble with using encoder and pid library together

That isn't an encoder?