What two studs?

The terminal ends?

Because the sensor itself just screw into the side of the oil filter adapter/block. And technically you don't even need it, they are known to fail and piss oil out and they only alarm you when the motor has 5 psi or less of oil pressure and by that time it's already toast.