If statement executing even when conditionals are false.

thank you!!!!!!!!!!

You are happy; because, you have got the solutions!

Have you understood --

1. Why the argument of the if() structure should be changed from 250 < lightlevel && lightlevel < 800 to lightlevel > 250 && lightlevel < 800?

2. Why the ; (C termination) should be removed as directed?

Slowly, acquire courage to ask questions. I am sure that if you would ask these questions the Forum Members would certainly answer; they are generous people.