How does all this happen?
The answer is BCIs - Brain Computer Interfaces: these are
devices that read brain information, which a software then
analyzes and finally uses to make commands that move robotic
arms or control games, read emotional and cognitive states or
stages of sleep, and infinite more possibilities.