New to code.

pingread(xx,stuff);

No you would call that function with pingread();
Passing things numbers you would need to declare the number type in the function.
void pingread(int var){
// ping read code
}

call with:-
pingread(6);
or pingread(My_variable);

see:-
http://www.arduino.cc/en/Reference/FunctionDeclaration