The town code enforcement officer has been arrested and charged with stealing more than $50,000, state police said.