'class HardwareSerial' has no member named 'printin'

You are getting the compiler message because there is no such command as Serial.printin()

I assume that you actually mean Serial.println()

Pete.