MILPITAS — A 45-year-old transient tried to walk away from a bench as police officers approached last week. When they caught up to him, they found methamphetamine in his pocket and confirmed him to be an unregistered sex offender, police said.

Police arrested Trevor Daniel just before 11:30 p.m. on Dec. 21 in the 300 block of Ranch Drive. An officer recognized Daniel from previous contacts and had been tipped by the department’s Special Investigations Unit that Daniel was not in compliance with the state’s Megan’s Law registration requirements, Lt. Abbie Serrano said.

The unit does frequent compliance checks, Serrano said, and detectives had discovered Daniel’s lack of compliance during one of them. They shared that information with uniformed patrol officers.

Daniel was arrested on suspicion of failing to register as a sex offender and possession of methamphetamine.