An affidavit obtained by Action News shows that investigators used undercover agents online to find videos and pictures of child pornography linked to Martinez's computer.
On Wednesday, federal agents went to his home in Northwest Fresno and seized the evidence. During their interview with Martinez -- detectives say he admitted to using his computer to view images of what he called "artistic nudes" he also told authorities they were males around 13-years-old in very provocative poses.
The 51-year-old added that he was molested when he was 12 -- and that he had suicidal thoughts and depression regarding his need to see the images.
Neighbors around his house did not want to talk on camera but tell Action News they're shocked. They describe him as a great family man who loved his wife and kids.
Martinez spent the last 26 years working for the Fresno Unified School District -- many of those years as a bus driver. District officials wouldn't say which schools or routes he normally takes.
In a statement issued by the district -- it said, "The employee has been placed on administrative leave pending the outcome of the investigation. There are no indications that the alleged crime involves any Fresno unified students."
Martinez had his first court appearance Wednesday at the federal courthouse in Fresno. He's expected to have another hearing Friday.
Martinez faces two counts of having and distributing child pornography. He could face anywhere between five to 20 years in prison.