New York, N.Y. (WPIX) -- A Wantagh High School math teacher who continued an affair with a student despite a court order telling her to stay away has been re-arrested just hours after getting out of jail.

Heather Kennedy was arrested at her home for allegedly sending her 16-year-old student-lover letters from her jail cell.

She was initially arrested last March for having sex with the teen and told to stay away, she didn't comply with that order and was again arrested four months later for continuing to see the teen and sentenced to six months behind bars, a sentence she just completed before today's arrest.