Communication between Raspberry pi and Arduino via GPIO

so It's a digitalRead, impretty much confuse , my programming skill is below average