A Texas middle-school principal faces criminal charges after she allegedly hatched the plan to plant a camera in a high school girls locker room.

Wendee Long, principal at Wayside Middle School in Fort Worth, is accused of using her daughter to place a cell-phone camera inside an Argyle High School girls locker room earlier this year, so as to spy on basketball coach Skip Townsend, WFAA reports.

Long, whose two daughters play on the team, was concerned that Townsend was being too stern with players. The principal reportedly wanted to get video of the coach yelling at the girls during a half-time meeting at a February game between Argyle and Sanger high schools, the Dallas-Fort Worth-area TV station says.

Long, 46, turned herself in Monday and was released from Denton County Jail on $25,000 bond the next day. She has been placed on administrative leave after being linked to the investigation that resulted in a grand jury indictment last week.

Long faces two criminal counts for improper visual recording and wiretapping, Jaime Beck, from the Denton County District Attorney's office, told the Fort Worth Star-Telegram. If found guilty, she faces a maximum penalty of up to 20 years in prison and a fine up to $10,000 on the second, more serious charge.

In June, Beck told the newspaper that Caydan Long left the recording device in the locker room. The prosecutor said there was evidence that Wendee Long came up with the plan and encouraged her daughter to make the video.

"She has not violated any law," Peugh wrote in a statement to WFAA. "We do not believe anything has taken place that should involve the justice system."

The video footage came to the public's attention in March when it was mailed anonymously to school board members in Argyle. Long served on the Argyle school board, but was defeated in an election earlier this year.