Sensei is an honorific that denotes a degree of expertise in any given subject. It carries with it the connotation of being someone's teacher or mentor and can be applied to virtually anyone who has demonstrated mastery over something - from children to authors. It refers to teachers in schools in Japan, but not as much for masters and their disciples.