Two things on one arduino

Hi,
I am trying two run two task on one Arduino. I have never done this before so I do not know if its possible. I need to one, Have the arduino read a temperature sensor. Two, I need to have the arduino move a motor. Both have different delays though that I need to set, so just throwing them together in loop will not work obviously cause I have different delays.

Thanks,
Rylan

See Several things at the same time

OK, that helped a little. If I create my own function, will that run as a loop.

If I create my own function, will that run as a loop.

That depends on how you write the function.

In order to be able to do two or more things so fast that they seem to happen at once then there must be no blocking code, such as delay() within loop() or any function called from loop()