That does look much closer to being right.
getTempCByIndex() does not return a char though, it returns float.