I tried the mode change with the terminal software HTerm. It worked well. But I don't understand why I can not change the mode by using my Attiny. The modify code 0xff 0x01 0x04… is sending to the sensor by the Attiny correctly but without success.