Search code for step motor

Currently, I am working in Arduino project specifically: "ARDUINO AUTOMATIC WATERING SYSTEM FOR PLANTS SPRINKLER". In the project I am using the following devices:
Arduino shield
50k humidity sensor
Step motor 28byj-48 l298 (step 2038)
Mini 12v pumps
....
I am having trouble setting the stepper motor to rotate to the plants that need irrigation. Moreover, I can not put a root coordinates for step motor. I need help to solve this problem.

Leviathan12:
Moreover, I can not put a root coordinates for step motor

You need to post your Arduino program and tell us exactly what happens when you run it.

A stepper motor does not know where it is (unlike a hobby servo) so the usual thing is to run some code at startup that makes the motor move until it triggers a limit switch. Then the Arduino knows where it is and can count steps from that position.

...R