Get a timer for your sprinkler. Problem solved.
https://www.amazon.com/dp/B08S3CDW2Y?psc=1&ref=ppx\_yo2ov\_dt\_b\_product\_details