Also - work for an employer who values you and who can justify your number.
Be sure to know if you're learning or earning. Eg is the employer paying you to learn and implement a new tech or are you the expert? Getting paid to learn can happen and may be worth the wage sacrifice.
If you're just executing and you're the expert, imo, don't settle
I have found a few freelance folks in non-US countries who work for very competitive wages and carry out relatively sophisticated work flows. These are tasks that I took a few good shots at automating but due to challenges (handwriting inconsistency, rotated forms, etc) I kind of gave up.