Teacher with heart infection returns to school