Trouble Detecting pF capacitance with Arduino
In the capacitance meter tutorial it calculates the time taken to charge to 63.2% - it counts in milliseconds from what I can see. 

500pF x 1Mohm is a CR time of 0.5 milli seconds - too low for the resolution

You need a substantially bigger resistor to get decent resolution