Support of that automation requires more training, resulting in more pay. Automation is a great thing. Unfair free trade is a terrible thing. A great example of this was a small engineering group coming up with a moving ladder that tripled fruit picking. 1/3 as many people - and cheaper. Farmers shied away from it because it was simpler to hire illegal aliens.
Trump got the religion vote because they speak the same language - figurative communication rather than literal. He also supports police and other things that make our homes safer. Clinton/Obama/DOJ incited race wars and gutted our police departments - the corresponding riots and lack of safety terrified us.
Clinton supported antisocial groups such as Wall Street, BLM, and illegal aliens. That drove away mainstream America.
Clinton's economic plan was to continue scraping the bottom of this recession. Trump's tax plan is a disaster but otherwise he has listed out many concrete steps to bring back and create jobs.
The gender, race, and other bits were far worse on the Democrats side - misandry, giving money and safety away to those with a better tan, taking bribes, etc.
There was a lot of bamboozling from both sides but it came down to who is going to support the majority of people. Same thing as Brexit.
What scares me is that the Senate has 51 Republicans. The next 2 years comes down to Trump staying the maverick and protecting us from the Corporate Party (Clinton & GOP).