First, you need to connect the DIN of the 8pin line to the TX of Arduino, DOUT connect to RX of Arduino, and GND connect to GND of Arduino.
This looks like your code and commands are okay.
Please check the connection.