Running two processes at once?

Hi

I want to run two processes as the same time on an Uno.

The one process is to blink an LED at a specific rate or frequency. The second process is to read the sensor and collect the data. I want to plot the frequency of the LED compared to the sensor reading the data. I wan to see at which stage does the process fail IE what is the fastest frequency the sensor will work at.

I can blink an LED using the Blinky code. How do I set the LED to continue to blink at that frequency while I read the results?

Best regards

Andre

Look at the blink without delay example, without delay.