when i use the serial to cummunicate with the cumputer,the value i get is not what i want.At first,the values in the serial receive buffer are the last time not pass through the serial when i closs the serial moniter.even if i use the function Serial.flush().
if anybody has the solution.Thanks.