Switch companies more frequently. Each time you do, you'll make more.
The trick is, you're worth whatever the market is willing to pay. But the only way to find out is to go out on the market. Most people stick with the same job for years, meaning they only check their worth a few times. Hence low salaries.