Programming an Arduino Mega and a Mega Sensor Shield V2 for use in a Hexapod

It looks like you need to revisit all those Serial.write calls - the "INT" is from a very much earlier version of the IDE.