changed from pin 13 to avoid rapid relay switching