Having trouble with a FOR loop.

Why is your data negative ?

You need to fix the code on the sender side to receive something meaningful

You have twice Height = atof(receivedChars);