always play in the ground function

sterretje:
Use a variable to hold the last reading; initialize to e.g. -1.

Do a reading and store in a variable. If the reading differs from the last reading
1)
copy current reading to last reading so it is remembered
2)
take the needed action

yes i have applied this part
but there is another actions going in the loop
what i need is if the Arduino happens to be in on of these action and a new read come
stop this action and print the value