Indictments in 3...2...1...
The only question is will that be days, weeks, months, or years?
Why go into engineering when management or sales pays double for less work?
Because, if you are in a good work environment in a good company, it's a whole lot more fun to follow your heart than to follow your wallet.
For those whose hearts lead them to engineering and who are fortunate enough to have a good work environment in a good company, there's plenty of reasons to stay rather than go with a less-work/higher-paying position in management or sales.
On the other hand, if your heart isn't in engineering, you probably shouldn't be there. If it is in engineering but you are in a lousy work environment or lousy company, change employers, not careers.
I tell teenagers who want to go into IT or computers for a career to only do it if they really want to. If they are doing it for the high salaries, they are taking a big risk.
You will still have a need for low-level customer-service work and high-level design/research work in 20 years.
The mid-level stuff that your run-of-the-mill programmer and system administrator does today will be largely be automated.
Hopefully, new, fun, decent-paying tech jobs that use similar parts of the brain that we haven't even thought of will fill the void.
Wasn't there something about a PASCAL programmer knowing the value of everything and the Wirth of nothing?