umm yeah i think is not the sweep servo i should be using.. i just need to move from position 0 to 1 and from 1 to 0 with conditions
I suspect that it is a bit more complicated than that. What I suspect you want is to move the servo to a position, if it is not already there.
High moisture --> Move the servo to 180, if it is not already there
Low moisture --> Move the servo to 0, if it is not already there
So, you need to keep track of where the servo is. Move the servo from where it is, in steps, if a move is needed. Move from currPos to destPos, in steps, rather than from 0 to 180 or from 180 to 0 (assuming that currPos and destPos are the names you define/use). Update currPos after every movement. Set destPos to 0 or 180, if radical movement is needed.
Actually, it seems like you would want to tie the amount to move the servo to the amount that the current sensor reading differs from the desired reading. If the soil is only a tiny bit damp, don't throw the window wide open.