combining led pattern and sensor data collection in one arduino program