Old code for Uno needs updating

I changed the last line of the code to:
Serial.write(32);
}

Since I got an error message saying that the original code
Serial.print(32, BYTE);

is no longer supported.

Max is not receiving the data from the Arduino.
I'm wondering if I need to do more updates to get Max to read it.