This is a historic routine that works outside of current automated scheduling. The routine loops through UV measurements if sun is above the horizon (i.e. sunlight is present).