The husband of a teacher who spent the night with a 16-year-old pupil has told how she seduced the boy as revenge after he had an affair. Bernadette Smith, 35, narrowly avoided a prison sentence this week after confessing her infatuation with her student Gary Ralston. The court heard how she called the boy into her classroom at Banockburn High School in Stirling, and confessed her feelings for him. The pair later kissed passionately in a park, and spent the night in bed, where Smith wore just jeans and a bra. Abuse of trust: Sheriff Wyllie Robertson told Smith (left), 35, who kissed Gary, then 16, (right) and lay beside him wearing only jeans and a bra, that she had committed a serious abuse of trust. She was spared jail
@highlight
Teacher Bernadette Smith kissed and shared a bed with Gary Ralston
@highlight
She narrowly escaped jail after admitting sexual activity with a pupil
@highlight
Her husband Brian Smith, 35, has told how she said the affair was payback
@highlight
She sent a break-up text to Mr Smith, with whom she has three children
@highlight
Smith then switched off her phone and spent the night in bed with Gary
@highlight
Returned the next morning to admit what she did, shocking her husband
@highlight
Obsession cost her job and her reputation, Stirling Sheriff Court heard
@highlight
Gary said: 'I was thinking I was quite lucky. A lot of the boys fancied her'
@highlight
Smith under supervision for two years as part of community payback order
He said his relationship with @placeholder, who was his teacher during third, fourth and fifth year, began during secret meetings  at school