Maybe I am not doing something right
My array is 13 bits long. Assuming the array numbers start with 0 and ends at 12. Here is the string (the x's represent numbers in ascii) H xx.x T xx.x with the spaces (I assume) part of the array. I need to use the numbers after T xx.x (which is temperature in Celsius) and convert it to Fahrenheit. Here is what I used:
temp=(humidity1[9]* 90) / 5
temp1=(humidity1[10]*9)/ 5
temp2=(humidity1[12]*9)/50
tempfin=temp+temp1+temp2+32
Humidity is the str array variable that holds the information. When I get the final value and output it on the lcd, I get an unrecognizable character. Any suggestions? thanks