STAMFORD - A 72-year-old substitute teacher in Stamford who faces public indecency charges is free on bond.

Michael Luecke has been ordered to 24-hour house arrest and has to wear electronic monitoring. He also cannot have any contact with minors and must stay away from school property. 

Police say a faculty member spotted Luecke masturbating in the hall Wednesday at Westhill High School.

Investigators say security video also shows Luecke watching students in the courtyard moments earlier.

According to court documents, Luecke told officers he had a wardrobe malfunction and was trying to fix his pants. 

Stamford police say Luecke has no prior arrests. Stamford Public School officials told News 12 that he has been a substitute teacher in the district since 2009.