If you want to actually hit what you are aiming for, use heavier BBs. At least 0.25 or 0.28+ if your gun can handle it.
I usually set the target at 40m. First thing is to set the hopup. Don't use the sights, just look down the barrel to check the trajectory. People usually prefer one of the two: set the hopup to get the flattest trajectory with no raise in it. This is the most predictable trajectory. I prefer the other way, a little bit of raise in it at the last part.
This gives the most range.
Something like the difference between the green and the black graph. (Yeah, I know it is an other graph, it's just for the shape of it.)
If you are happy with the trajectory, set your sights to the impact point on the target. First set the iron sights (horizontal, then vertical), then the red dot or optics if you use one.
After you are done with that, spend a lot of time on different distances too. Learn how much you have to aim below or above the target on certain distances.
If your hopup is fine, you don't really need to touch it again, except if you buy an other brand of BBs, or the temperature/humidity changes significantly. Check before every game if everything is still ok. Usually you don't have to touch the sights, just the hopup to get the same trajectory as you set the first time.