Dual-mode brain-sensing device