HM-10

my question is about the code in arduino.

The code you didn't post? What pins is the HM10 connected to? Your code would tell us that.