could you please post all the code, this seems to be only the loop part..
and another thing, where do you assign your value to the sensorVal now? since i don't see any analogRead() somewhere, i might be missing something though..
If you want it to be checked every loop then you'll have to update it every loop, or the if-statements within the for loops will never get executed, since before the for loop you state that it is bigger than 25, so when you do not update it, it will never get smaller than that 25..