33 is outside of the range so the Red Led should be on. I am attaching a second image where the value from the sensor should be in range to turn on the green LED. The level from the sensor is 145 so the green LED should be on and the serial monitor should print GREENON. But the program didn't go to that part of the if statement.
