reading joystick code error

That's really old code, I'm guessing.
Serial.begin(9600); is the correct form.
Serial.print in other cases.

Can you provide links to where you found it please?

(Never tried to read incense myself)