Hello guys firstly id like to thank you in advance for your reply . My problem sounds like this :
I have few sensors doesnt matter how many doesnt matter the pin i need an code example for taking the value from arduino sensor into my java gui and save it as an int . The problem is that i need it to be in a loop so it needs to have an constant update and i get to many datas and i do not know how to take each one and make it into a diffrent string . The connection works i get the numbers for example i get the temp x C and Humidity y % the problem is that the all come in the same line and i dont know how to extract x to temp and y to humidity .
I attached the code here . I need to finish this by tomorrow so i got only few hours left this would help me alot , thank you !! It doesnt have to be the same code it just need to save that variables into an int so i could use them as an label . Again i dont have any code problems is just that i am out of ideeas .
Test.ino (757 Bytes)
SerialClass.java (3.07 KB)