Run two seperate things at once?

Hello! i am currently making a valve control thing using a servo and i was wondering if i could get my Arduino to tell me temperature around it as well? Do i need to get another Arduino or could i somehow separate the two task?

could i somehow separate the two task?

What are the two tasks? How often do they need to be done? Reading a temperature sensor is trivial, but may, depending on the sensor, be a blocking function.

How, exactly, are you controlling the servo? Based on what data?