Employees forget that they sell their labor. Sell your labor to the highest bidder.
No one should sell themselves short, but choosing, say, a 100% worse environment or a dead-end technology stack for a 5% higher pay (or whatever) is not wise.
Value comes in many forms. OP message shouldn't imply that money alone is the only variable in the equation of "am I compensated fairly".