"I thought I'd seen it all, but this takes the cake," neighbor Francisco Javier Estrada told KION.
Surveillance cameras caught Roberto Daniel Arroyo in the act.
The Dungans said they were not home at the time, but their children were inside the house sleeping.
Police said a newly installed surveillance system helped them investigate the case.
"We were pleasantly surprised the image was so clear it didn't take us long to identify the individual," Salinas Police Department spokesperson Miguel Cabrera said.
The security cameras also caught Arroyo moving an extension cord to the front yard and relieving himself.
"You kind of laugh about it afterwards because, technically, he didn't harm anybody, he didn't break anything," homeowner Sylvia Dungan said.
Police said Arroyo could face misdemeanor charges of petty theft and prowling.
As for the Dungans, they said they came home and made sure to clean off their doorbell.