undefined refernce to loop

I'm not sure, I didn't write this bit, my boss did, the voltage part is the input value, anaVal.

by deleting the bit between the brackets, ie the int aimtemp etc