Help with IF and Else

horace:
do a web serach on C operand promotion

The OP can tackle that (unless someone wants to provide the answer). I don't care to look it up, AFAIK there is an issue. I just cast the ADC integer reading as a float and move on with life.