Former teacher will serve time for sexual assault