I'm doing a project .I have few questions ,and i am new at coding .
I'm going to create a main function , the main function will use 4 different sensors' collecting data to decide to stop the process or not. 
First question : how to put 1 sensor's data into a judgement-formula , even another 3 sensors' data at the same time . 
Second question : how to store sensor data?
Third question : i can monitor 1 sensor data on serial port ,what to do if i need to monitor few sensor data
Masters , i need you, thank you .
wade
A sensor gives you a number. Use that number in an IF statement to make decisions.
Store data in an array, or an SD card, or the internal EEPROM .
For more than one serial sensor use software serial OR use a Mega because that has four serial ports.
You have not said what type of sensors you are using but here are some ideas using digital sensors
if (digitalRead(sensorPin1) == HIGH)
{
 //do stuff if the input is HIGH
}
if (digitalRead(sensorPin1) == HIGH && digitalRead(sensorPin2) == HIGH) //etc
{
 //do stuff if both are HIGH
}
if (digitalRead(sensorPin1) == HIGH || digitalRead(sensorPin2) == HIGH) //etc
{
 //do stuff if either is HIGH
}
Then you mention serial input. You can monitor serial input by parsing the incoming data and using the value(s) derived to decide on actions to be taken. If more than one set of serial data is to be received and parsed then it will need to include an identifier for each set of data or be in a fixed format, such as comma separated, so that it can be parsed correctly.