MACHIAS, Maine — A former substitute school teacher at the Ella Lewis School in Steuben entered a plea of no contest Monday to two counts of gross sexual assault of an eighth-grade student at the K-8 elementary school.

Dianne L. Leach, 47, of Steuben will be sentenced at a later date.

Last April Maine State Police investigated allegations of an inappropriate relationship between the substitute teacher and a male student. RSU 24 Interim Superintendent Wayne Enman then told the Bangor Daily News that the investigation was launched when a teacher confiscated the victim’s cellphone during a class and saw a text message from Leach that raised concerns.

The complaint filed in May claims that Leach engaged in sexual acts with the student in December 2010 and in March 2011.

RSU 24 subsequently obtained a protection order against Leach requiring her to stay off all school properties.