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: UPDATE: Woman Testifies About Stress After Inaccurate Theranos Hormone Test

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: UPDATE: Penngrove House Fire, Spot Fires Contained; Evacuations North of Petaluma Lifted

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: Contra Costa DA: No Charges For Richmond Officers In 2019 Fatal Shooting Of Luc Ciel