It's not clear why he wanted to get into jails, but he had previously been caught posing as a Board of Education worker to enter two schools and rifle through student files. In 2004, he pleaded guilty to attempted burglary in connection with that case.
His court-appointed lawyer, Andrej Bajuk, couldn't immediately be reached by phone for comment. No one responded to a message left at the public defender's office that handled his arraignment.
Department of Correction spokespeople did not immediately return phone messages Saturday.
A judge set bail at $50,000 for Matagrano. He also faces charges of burglary, possession of forged instruments, larceny and promoting prison contraband. He is due back in court Wednesday.