Reading Sensor Log in TXT File

The value stored is only the last character.

No. The value that YOU store is always the last value read. You could do otherwise, using an array.