writing code for multiple sensors.

hi, i'm new to the arduino thing, my project is making drip irrigation using two soil sensor and a temp/ humidity sensor chip.
i'm good in c++, but new to the Arduino.
what i need to do is read from the two sensors each one in a pot and compare to an input voltage if the reading is less than the input voltage i will have a water pump turned on to the low moisture pot,
so how to write a code that read from the sensors and compare to see if the voltage is less (for a range between 0.5 and 0.7v ) less than the input voltage, it will turn On the pump, and stop when it reach the input voltage.

Does this:
http://arduino.cc/en/Reference/AnalogRead
help?

well that help, but i don't know how to write the part that will read each sensor separately and wait for a while (to collect data from each sensor) then compare it with the input voltage if it's 0.5 to 0.7 less then the pump will turn on and if the sensor voltage = voltage input it will shot off.

but i don't know how to write the part that will read each sensor separately

Two calls to the same function with different arguments.

Two calls to the same function with different arguments.

...storing the results in two different variables.

read each sensor separately and wait for a while (to collect data from each sensor) then compare it with the input voltage if it's 0.5 to 0.7 less then the pump will turn on and if the sensor voltage = voltage input it will shot off.

Where is this "input voltage" being input or read?

Since the Arduino's analogRead() function returns an integer value, differences will never be 0.5 to 0.7.