Having trouble with a FOR loop.

I meant you have twice the line Height = atof(receivedChars); in the code - one is enough :slight_smile:

Ok i see - you are not getting the absolute height but relative to the previous reading - is that what you are saying ?