Lightsensor disconnected check added