A Melbourne teacher has pleaded guilty to secretly filming hundreds of primary school children in a disturbing breach of trust that has shocked the community.

Timothy Blamires, 33, on Friday admitted to 13 charges at the Melbourne Magistrates Court after hiding a spy camera inside an air freshener in the boys’ toilets at Kingswood Primary School in Dingley Village.

WATCH THE VIDEO ABOVE: Teacher admits filming 300 children in school toilets

Know the news with the 7NEWS app: Download today

He recorded more than 34 prepubescent children on October 13 and more than 188 children between October 20 and 22, according to court documents.

On March 30, he recorded more than 74 children using the spy cams.

One mother, whose two children were victims of Blamires’ offending, said her son was still too young to understand the gravity of what had happened to him.

“It’s been more about educating on signs to look out for (and) ... just be aware of not everyone is friendly,” she told reporters outside court.

“For my older child, it’s taken the veil away, and she’s grown up a lot.”

A cleaner replacing a fragrance dispenser inside the male toilets on April 28 discovered the hidden camera inside, which had a wire connected to a hard drive.

Be the first to know:

She placed it into a plastic bag and put it on the principal’s desk before police were called.

While officers were on their way, Blamires removed the camera and put it inside a drawer in a sick bay before returning to his class to teach.

The odour dispenser was found inside his backpack at the school after his arrest, and police seized devices from his home including laptops, phones and tablets.

Several parents attending the court hearing told of their relief after Blamires pleaded guilty and prevented the matter from dragging out.

The mother of the two affected children said the entire community had been shaken up by the crimes.

“No one should ever have to go through this at all, ever, with their children,” she said.

Another mother said some kids seeing their teacher in jail are “actually grieving what was their favourite teacher”.

“They’re not just grieving their teacher in jail,” she said.

Both parents said there had been, in hindsight, “suggestions” and “definite signs” from Blamires.

“No one ever thought it would be ... we thought he was a bit of a strange cookie,” they said.

Blamires remains behind bars and will face the County Court in May next year.

1800 RESPECT (1800 737 732)

National Sexual Abuse and Redress Support Service 1800 211 028

Kids Helpline 1800 55 1800 (for people aged 5 to 25)

Crime Courts & Justice Melbourne News VIC News