I
This is not a sketch but a code fragment. We have no clue about the data type defined for value1, value2, etc.
You're sending the values as ASCII (human readable format) but receiving it as single bytes that you're printing back to the sender as ASCII again. Do you really expect a Serial.println() to show something on the seven-seg display? Or was that just some code to waster our time? Read the sticky note at the top of the forum!