In the future, you'll work less for people and more for the machine. Machine learning is already something we know today. Automation and artificial intelligence will replace a whole range of jobs. This will threaten 25% of American jobs, especially those with repetitive tasks. By 2040, it will be common to use algorithms to, among other things, train our AI replacements, but first and foremost to optimise the tasks we do.
One example already used in the transport industry and among professional drivers is the "dash cam". It doesn't just watch the road, it also tells your employer if you seem tired (eyes, sweat, heart rate) to make sure you get enough rest.
