Connect an Arduino to a Siemens PLC S7-1200

Here is a link for the S7 code