Prosecutor Ben Lawrence told the court Maidment met his victim on social media and eventually requested naked pictures before attempting to meet her in person.
He added: “On two occasions he tried to meet the girl, on the first occasion she was travelling on a train from the north of England and he travelled from Stoke to catch the same train.
“On the second occasion she said she lost her phone and he offered to meet up and give her his old one. He then told her he would like to have sex with her when she was 16.”
The court heard the girl told Maidment she had been speaking to her teacher about their relationship and he asked if he should expect a ‘knock on the door’.
Mr Lawrence added: “He asked if the police were now involved. And then sent her a message saying he would send her a postcard from prison and another saying ‘I will get beaten daily in prison for being a child molester’.”
Maidment pleaded guilty to meeting a child following sexual grooming; six offences of making indecent photos of a child; possessing indecent photographs of a child; possessing extreme pornographic images; and doing an act intending to pervert the course of public justice.
As well as the prison sentence, Maidment was made the subject of a sexual harm prevention order and was placed on the sex offenders’ register for life.