get pin as arg having default pin 11