You can either change the above example or there are other method also for forecasting you can refer to them as well.
Here is the link of one such example.
If you desire to tweak the above example and make it work for you case, you can simply change the input of SequenceInputLayer according to number of variable. You may also need to change the LSTM layer input accordingly.
Hope it helps