Arduino Limit Switch Loop Code