Delta_G:
You're reading and writing to the same pin. Is that pin an input or an output? It's hard for me to see how it is going to be both in this code.
the pin is an input, I'm terribly sorry for my code also I'm sorry that I've made another post at pins - Arduino & RPi communication via GPIO - Arduino Stack Exchange and talking nonsense all the time