adds logic to turn on light if it is not working.