Let's try to turn the lights on.

Set the value of the variable isDay to false to make sure the code in the else block is executed.

Boom! That's how home automation apps turn lights on.

Make sure to assign the value false to the variable isDay.