The problem is that the code section only runs through the if statement once. So it will check it once, and then move on... unless it's in the loop().
The problem is that the code section only runs through the if statement once. So it will check it once, and then move on... unless it's in the loop().