Handled light sensor On/OFF condition
Light sensor ON/OFF added