SAN JOSE (CBS/AP) – A Silicon Valley software executive has been convicted of burglary for cheating Target stores out of Lego collectors’ sets.

Santa Clara County prosecutors said Thomas Langenbach pleaded no contest to one count of felony commercial burglary Monday. In exchange, prosecutors agreed to drop three other counts.

READ MORE: DA Declines To File Charges In Fatal Shooting Related To Arson Fire That Claimed Father, 1-Year-0ld's Lives

Langenback was accused of putting fake bar codes on Lego sets at various Target stores, buying the toys at a steep discount, then selling them online for thousands of dollars.

Defense attorney Geoffrey Carr said his client was not motivated to make money but to experiment with software his Palo Alto company, SAP Labs, had created.

READ MORE: Family Holds Vigil, Seeks Accountability From Alameda Police Following In-Custody Death Of Mario Gonzalez

Langenback faces one month in jail, five months of home detention and three years of probation when he is sentenced in September.

(Copyright 2013 by CBS San Francisco. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

MORE NEWS: Cyclist Finds Dead Body While Riding Through Sunnyvale Park