rfid problem

Mhh.. So i have to set e.g. pinMode(30,OUTPUT) and pinMode(31,INPUT)?