Change the light to purple if rain is detected