added task to detect ambient ligth in the room