ambient light sensing to toggle the darkmode