Good observation, I corrected that, however I'm still having issue with the program. It actually flashes the LED by itself between green and blue, but it seems totally random. Is there a way to do this without a loop and just have board listening for the trigger from the hall effect sensor?