How brain sensors connect to the brain