A former teacher was sentenced to 10 years probation in connection with an improper relationship with a student that happened in 2022, court documents said.