Getting stuck in a loop even when the conditions for the statement changes

drunyan0824:
If you look at the light level in Serial Mon 1 you can see that the light level falls into the range where the green LED is on and GREENON, but REDON is being printed to the screen.

The value in your image is consistently 33. Is 33 inside or outside your range?

How does your code behave when lightLevel is precisely 130?

How does your code behave when lightLevel is precisely 150?