thank you so much for your advice. now it works as simple script. i tried to integrate it into my project which works with arduino and processing. i tested it with a button and a controlling led which has to give an impulse to processing to play a movie. so far everyting worked perfect. now i replaced the button with the radar and it doesn't work anymore. only the led works, but not the movie. somehow the signal doesn't geht to the movie, which i don't think is logical. maybe it has something to do with the two different baud rates? here is the arduino script and the function of processing. does anybody have an idea, why it doesn't work anymore?
thanks for help