More crazyness with braces!

Do you mean this from reply #4 from @jremington?

Note that this line is outside of the loop function.

TempA = digitalRead(Asens);