A head of maths from Hemel Hempstead took an indecent video of himself in a toilet at his school and sent it to someone he thought was a 13-year-old girl.
Khaled Miah, 40, of Belswains Lane, believed he was communicating with a girl called Daisy, but in fact he was caught in a police sting.
Miah, who had been a teacher for more than 18 years, was released under investigation and was caught grooming a second fictitious girl set up by officers, a 12-year-old called Zoe.
On July 13 Miah was sentenced to 16 months in prison when he appeared at Luton crown court.
He had earlier pleaded guilty to two charges of attempting to cause a child to watch a sexual act, four of attempting to engage a child in sexual communication and two of possessing Category C child sex abuse images.
Prosecutor Nadia Chbat said Miah was head of maths at the high School in Luton when he began chatting to “Daisy” on WhatsApp in November last year.
He asked the girl explicit questions and graphically explained sexual acts.
Miah sent her explicit pictures of himself in the bath and on one occasion locked himself in a staff toilet at the school where he videoed himself performing a sex act. He sent that to ‘Daisy’ and also told her they could have sex on his desk at the school.
Ms Chbat said when the police arrived at the school on November 21 last year he told them he knew what it was about.
He was initially bailed and then released under investigation in February this year. He was warned an investigation was continuing. Despite this, he was in contact with “12 year old Zoe” on ‘Chatiw’ telling her: “I am a bit horny and looking for someone to play with.” He told her she had lovely legs and said he was going to have fun in the shower.
Miah, who is getting divorced, told the police he was going through stresses at the time in his marriage and had mental health issues.He denied having any sexual attraction to children.
He must also sign the sex offender register and abide by the terms of a sexual harm prevention order for 10 years.
Judge Barbara Mensah jailed him, saying: “Just because a child is fictional you are still culpable. You clearly had an interest in young girls.
“You indicated to them you were a teacher and you were prepared to abuse the trust of young people. There was clearly grooming in both cases.
“You have let down your family, community and your school.”
Paul Baddeley, from the Internet child abuse investigation team, said: “As someone who taught children the same age as he believed the girls he was talking to were, this would suggest that their young age wasn’t going to stand in the way of his own sexual gratification.”