This is one spy camera 007 would never want from Q.

A convicted sex offender has been jailed for putting a hidden camera in the women’s toilet at the movie studio where James Bond is being filmed.

Peter Hartley, 50, used a motion-triggered miniature camera in a grill above the cubicle in Britain’s Pinewood Studios, according to The Sun.

The maintenance worker is thought to have filmed at least 30 women before it was discovered in June by a female crew member of “No Time to Die”, the 25th Bond movie currently being shot there.

The woman, whose identity wasn’t released, saw a shining light and used a screwdriver to remove the grill cover and find the camera, with Aylesbury crown court hearing that the discovery left her suffering panic attacks.

“I am not eating or sleeping properly and I don’t feel safe anywhere – I check the whole house for cameras,” she said in a victim impact statement, according to The Independent. “I don’t doubt that I will check every bathroom I go into for the rest of my life.”

Hartley, a Londoner who has a slew of similar convictions, admitted voyeurism and was on Friday jailed for 16 months.

Judge Francis Sheridan called him “a disgusting individual” as he also ordered him to be listed on the sex offenders registry for 10 years, according to The Sun.