keeping the Arduino in a function for X time

grio:
I want the arduino to run sensor1 for 5 seconds before coming back and moving to sensor2.

what kind of sensor?